Hi, Alfresco community,
I'm new in the Alfresco world and I have a doubt related to the folders upload process.
Exist any way to execute a backend method after a folder upload process is finished?
Some context:
I want to create an auto process to fill all metadata of files inside a specific folder. For example, I have a backend method that is waiting to receive a CSV file with that mapping between the metadata and the values to add, founding the file using that document name field, but I only can start this process after the Alfresco end the upload, because the upload it's done file by file.
Any idea?
Thanks.
Solved! Go to Solution.
A "folder" upload is nothing more than a collection of independent, single file uploads which do not have any correlation to on another in the backend, making it impossible to react in any meaningful way to the completion of the "folder" upload and handle some metadata file in a special way. What you'd probably want in such a situation is to use the import action of Alfresco which takes an especially prepared ZIP file containing an XML descriptor of the metadata to be attached to each of the documents / sub-structures (you can create arbitrarily complex structures that way), and which is processed in a transactional manner. Unfortunately, the import action is not exposed by default for anyone to use and is not really documented in any way, so it mostly is used by advanced administrators / developers.
A "folder" upload is nothing more than a collection of independent, single file uploads which do not have any correlation to on another in the backend, making it impossible to react in any meaningful way to the completion of the "folder" upload and handle some metadata file in a special way. What you'd probably want in such a situation is to use the import action of Alfresco which takes an especially prepared ZIP file containing an XML descriptor of the metadata to be attached to each of the documents / sub-structures (you can create arbitrarily complex structures that way), and which is processed in a transactional manner. Unfortunately, the import action is not exposed by default for anyone to use and is not really documented in any way, so it mostly is used by advanced administrators / developers.
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.