AnsweredAssumed Answered

upload file into a specific folder

Question asked by lpgc on Nov 16, 2012
Latest reply on Feb 5, 2014 by fgjohnson
Hi, im new to Alfresco and im just going through the different webscript examples. The one im looking right now is a form to upload a file into alfresco root home setting the title and description. It works 100% ….

The prob comes when i try to upload the file to a different folder. This is what ive been trying:


var folder = roothome.childByNamePath("Sites/my new folder");
upload = folder.createFile(filename) ;

Since i havent found any example around im not even sure this is the correct way to proceed, so any help will be nice  :idea:

Thanks in Advance.

Outcomes