DropzoneJS function instead of POST url
Asked Answered
A

1

7

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?

Anonym answered 14/2, 2018 at 15:23 Comment(1)
I was searching for the exact same functionality. I am working with firebase storage which also exposes a JS API and no POST URL to call.Axolotl
W
13

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.

Worker answered 16/2, 2018 at 9:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.