How to edit metadata on a file associated with a LinkedData?
g
grandelite
started a topic
about 6 years ago
I have a LinkedData entity that has a file linked to it. I would like to edit the metadata and make the file public but I don't know how to do that. I have tried many different ways to do it but nothing I have tried works. I have used this tutorial http://devcenter.kinvey.com/android/guides/files.
1 Comment
E
Edward
said
about 6 years ago
Hey,
Take a look at the source code of StatusShare-- this sample use LinkedData extensively.
Specifically, check out around line 150 of this file: https://github.com/KinveyApps/StatusShare-Android/blob/master/status-share/src/com/kinvey/samples/statusshare/fragments/UpdateEditFragment.java
if (bytes != null && filename != null) {
Log.i(Client.TAG, "there is an attachment!");
LinkedFile lf = new LinkedFile(filename);
lf.addExtra("_public", true);
KinveyMetaData.AccessControlList acl = new KinveyMetaData.AccessControlList();
grandelite