Problem: I am getting this error after uploading a file via dropzone.js
POST http://localhost:8080/[object%20Promise] 404 (Not Found)
I am using dropzone.js library in order to upload videos on an app. The url is different each time for every file. So I make http request - using axios - in order to get each time the url.
The only possible solution I found was by passing a callback function to the url (Dropzone.options):
var myDropzone = new Dropzone(".my-upload-container", {
url: axios.post('/createURL)
.then( function (response) {
var theURL = bla
return theURL
})
});
When I am uploading a file and the Dropzone is sending a POST request, I am getting this 404 error.
Question: How can I get the correct url that I want?
A sample of a url that I want is like: http://blabla.com/v1/key=bla&token=bla