Can I use folder path to upload a file into Alfresco using Rest API or any other service. If yes can you please provide details

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
dsingaraju
Member II

Can I use folder path to upload a file into Alfresco using Rest API or any other service. If yes can you please provide details

There is a requirement in the project that the calling application do not have guids and there is possibility of duplicate folder names. 

Can I use the REST API with folder path to upload the files to a specific folder with guid.

If yes, can you please point to  API (url) and documentation.

Thanks in advance.

Regards

Dilip

2 Replies
prachi_shah_c2
Active Member II

Re: Can I use folder path to upload a file into Alfresco using Rest API or any other service. If yes can you please provide details

Hi dilip singaraju‌,

  1. Please look this http://localhost:8080/alfresco/s/script/org/alfresco/repository/upload/upload.post there are multiple option like  "uploaddirectory" parameter which accept folderPath OR  "destination" parameter which accept folder NodeRef.
  2. Another approach Alfresco Chrome Extension to upload files!. This Chrome Extension might be helpful to you

Thanks,

Prachi shah

ContCentric

Moderator
Moderator

Re: Can I use folder path to upload a file into Alfresco using Rest API or any other service.  If yes can you please provide details

Follow as Prachi mentioned, additionally you can look at this post as well for more details: https://javaworld-abhinav.blogspot.com/2014/09/upload-documents-to-alfresco-using-rest.html