I have done many searches on this subject but i can't make what i want after many attempts.
My objective is to customize the upload window to display the "edit metadata" form before the upload :
- Inside a folder which add an aspect on all uploaded files with a rule, the user selects one file on dnd-upload window.
- Instead of sending the file directly, i want to display the same form as in the "edit properties" popup (only for the aspect defined in the rule, the other folders without this aspect keep the same upload window)
- If the metadata are valid, upload the file with the metadata to create a 1.0 version.
Currently, I customized the edit form for the aspect through an extension file and everything works fine, i can see my fields when i edit uploaded file properties :
My next step is to send the form to save the file and the metadata but i don't know how to do it.
Currently, I can't send the form ("javax.servlet.ServletException: Possible CSRF attack noted when comparing token in session and request parameter. Request: POST /share/proxy/alfresco/api/type/ns%3Atypetest/formprocessor").