You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload a file I would like to also include the metadata of that file but the method uploadFile only accepts the file and the DOI of the dataset where we are going to upload it.
This is an example of a file and its metadata:
I would like to know how to upload the Description and the File Path property, but when I am looking into the implementation I see that you are using the class Deposit from the SWORD library, which contains fields for a file, a date, a MD5, a mimetype... But I do not see the path or description anywhere.
Could you please explain me how can I upload those metadata (Description and File Path) into each file? The metadata of the name is already an extra parameter of uploadFile method in my PR #13, which allows to separate the data of the file from its metadata (File Name), so the File Name is already a metadata that we can control separately from the data.
I am looking for a similar modification / extension that allow me to control those fields via uploading the file or via modifying its metadata using another API method.
The text was updated successfully, but these errors were encountered:
As far as I know, in part, yes. I think I can use this function to add the metadata that I need.
But also I will also need to use the get metadata function to retrieve the data if it is already created, and the update metadata to update metadata if it is in place.
Hello,
When I upload a file I would like to also include the metadata of that file but the method uploadFile only accepts the file and the DOI of the dataset where we are going to upload it.
This is an example of a file and its metadata:
![image](https://user-images.githubusercontent.com/23342150/202167732-f9dc8c59-0135-4142-b8b3-7509b3d61f8b.png)
I would like to know how to upload the Description and the File Path property, but when I am looking into the implementation I see that you are using the class
Deposit
from the SWORD library, which contains fields for a file, a date, a MD5, a mimetype... But I do not see the path or description anywhere.Could you please explain me how can I upload those metadata (Description and File Path) into each file? The metadata of the name is already an extra parameter of
uploadFile
method in my PR #13, which allows to separate the data of the file from its metadata (File Name), so the File Name is already a metadata that we can control separately from the data.I am looking for a similar modification / extension that allow me to control those fields via uploading the file or via modifying its metadata using another API method.
The text was updated successfully, but these errors were encountered: