You are highly encouraged to use the new version since it contains all the features of the first one while adding new ones and fixing lots of bugs and compatibility issues.
you need to have a basic element — such as a fieldset.
Query variables are passed differently depending on whether upload happens via URL.
However, if there are many elements this can be troublesome.
Error event will be fired if server returns a non-200 response code or the AJAX request fails.
Note that it won’t be fired by a timeout — you need so set it up yourself like this: Note that it isn’t possible to catch errors of legacy dialog File Drop will upload them by submitting a form that’s automatically created inside the drop zone (but it doesn’t wrap its contents).
Additionally, if you want to use legacy upload for browsers not suporting drag & drop (these include IE and Opera) you need to include the following CSS (you can change it but be careful not to break things): New File Drop version is not a drop-in replacement for the old one.— when enabled (by default) lets user upload the same file twice in a row but has a slight chance to break your old code. It is now possible to pass an arbitrary object of values to . Revised and extended documentation, dedicated website, fully documented code, complete test suite and validation across all possible browsers.Added and verified support for Internet Explorer 10 with its incomplete File API. New features like data reading and ) Java Script files. File Drop is hosted at Git Hub — feel free to fork it, report bugs and otherwise contribute to the project.It’s typically marked up in HTML and then retrieved by ID as in the example below.
In this example, if you select or drop a file nothing will happen yet.When creating a drop zone File Drop will first check to see if it already contains a form that can be used for legacy upload.