Comments (1)
Furthermore you expect at line 343 that the server responds with some data. Otherwise you skip the complete block incl. calling of afterAll and the other helper functions. From my point of view the check should only happen around the try/catch and the other stuff should be done, even if the server doesn't send data at all.
xhr.onload = function() {
var serverResponse = null;
if (xhr.responseText) {
try {
serverResponse = jQuery.parseJSON(xhr.responseText);
} catch (e) {
serverResponse = xhr.responseText;
}
}
....
}
from jquery-filedrop.
Related Issues (20)
- Upload event doesn't work HOT 1
- uploading very large files (200 MB +) results in allocation size overflow HOT 1
- Upload directly to s3 bucket
- file.name HOT 1
- RangeError: Maximum call stack size exceeded. HOT 2
- If drop and change event are bind a $('input:file') element, drop event not work
- Make dropzone clicking triggering fallback configurable
- unicode characters are not supported
- afterAll doesn't fire if files are rejected HOT 1
- Button Click Open FileUpload Dialog available? HOT 1
- Drag and drop doesn't work in MS Edge on Win10
- 'BrowserNotSupported' alert on IE10+ HOT 2
- maxfiles can't work. HOT 2
- Inaccurate file sizes on drop
- Upload on button click HOT 2
- jQuery(...).filedrop is not a function with jQuery 3.1.1 HOT 10
- Not Found, error message while draging file into filedrop area.
- Upload .jfif images
- How to disable the upload HOT 1
- Disable Drag and Drop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-filedrop.