![]() The zone ID I chose is my-dropzone so that becomes myDropzone. In order to reference my Dropzone, I use the ID written in camelcase. So the first thing I'm going to do is set up to configure some Dropzone options. The file (or files) need to be sent with my API key in order to be posted on the api.video servers. I don't want that to happen, because I'll get an error. By default, Dropzone wants to upload your file the second you drop it in the zone. Now let's take a look at customizing the dropzone. Along with sending files, I want to send the API key, so I add a field for that, and I want everything to send when I press Submit so I add a button for that. In the form I add an ID, because I'll have to make some changes to how Dropzone is set up, and I specify that it's going to be a POST request to "/". This tells Dropzone where to add the drag n' drop zone. I add a form action to show where I want the information to be sent to. Let's start by walking through the HTML file index.html.Just change the references in index.html if you want to do this instead. You can also reference these using the static folder and placing dropzone.js and dropzone.css there. In my version of the project, Dropzone.js is attached using CDNs. Grab the code from Flask and Dropzone.js. ![]() To get started, you'll need to do these things:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |