Hi, i'm using alfresco 5.2 and i'm using rest api. I recently developed my software to upload a file to admin file manager. What i want to do right now is, upload my file to a specific folder in admin.
Imagine i have a folder named "reports" and my files should upload to "reports" folder.
File upload as "filedata" and i tried to provide "destination" as "sample" and it wont upload my file to "sample" folder. It just upload to the root of the folder. I provided my folder nodeRef as folder nodeRef. And then i tried to upload back again using "uploaddirectory" and for this i provided "sample" which is my folder name. But nothing worked.
What should i do in my case ?
"destination" should be the nodeRef of the target folder.
If you are uploading to a site, then siteId and container id can be provided. Else you can pass nodeRef of the existing folder using destination parameter.
You can use "uploaddirectory" in combination with either destination or siteid and containerid (if uploading to a site). where upload directory is a subfolder
Here is the detailed description for upload api:
Return status: STATUS_OK (200)
Value | Description |
---|---|
json | The default response format |
user | The authentication access |
required | The transaction level |
any | The format style |
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.