AnsweredAssumed Answered

JavaScript to move files

Question asked by ado on Jun 2, 2010
Latest reply on Jun 11, 2010 by rajanigupta
Hi

I am trying to write a script that would get a file (jpeg) from a certain store/directory and copy/delete or move it into another store/directory within the same site in alfresco.

I have absolutely no clue as to do this and I'm very new to JavaScript. This coding is only part of a larger extention that seems to be working fine. The file that needs to be obtained from the first directory's filename is passed as a parameter in the POST URL. I have read up on DOM objects but its unclear to me how I would apply this to get the document first and then assign it to the document object. Can this be done? Is there some other means of getting a document and moving or copying it?

Any help would be greatly appreciated.

Thanks in advance

ADO

Outcomes