cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get filename of uploaded file from alfresco repository

ramprasad_g
Champ in-the-making
Champ in-the-making
I would like to get the filename of uploaded file to alfresco repository through my java code.
Could anyone suggest me some solution how to get it ASAP.
3 REPLIES 3

sujaypillai
Confirmed Champ
Confirmed Champ
Check out this blog : http://fileuploadalfresco.blogspot.sg/2013/06/file-upload-in-alfresco-through-postman.html It explains you how to use the default webscript for file upload in Alfresco. The JSON response in it has the filename being returned.

not this, I want the java code using alfresco api to get the uploaded file name

If I am understanding correctly then you have uploaded a file in alfresco and now you want to get the file name of that file through its noderef. In that case, you can simply use nodeservice to get the name of the file. nodeService.getProperty(noderef, ContentModel.PROP_NAME) you can use it this way in your java code.

Hope this helps.