Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DropzoneJS function instead of POST url

For a project that I am working on in IE11 and Oracle-ADF I am trying to implement DropzoneJS for a drag-and-drop upload feature the client requested.

Oracle-ADF exposes a Javascript API (AdfFileUploadManager) which requires you to call addFileToQueue(Object file) to send files to the backend.

DropzoneJS however requires you to set a URL in the options (or use the standard form action) both of which do not seem to work in this scenario. Is there any way in DropzoneJS to call this function instead of set a POST url?

like image 811
A.E Avatar asked Feb 14 '18 15:02

A.E


1 Answers

If I understand your question correctly you want to use the DropzoneJS functionality without actually doing the upload?

In that case you should set autoProcessQueue to false. This will prevent Dropzone to automatically upload your file. Using the addedfile event, you can access the file object and use your other JS API to perform the upload.

like image 85
User404 Avatar answered Nov 14 '22 04:11

User404