javascript - How to make invalid server response -



javascript - How to make invalid server response -

i using dropzone.js , php uploading files.

but documentation of dropzone lacks of saying how tell dropzone file upload failed. understand, want validate files server-side too, so need way how tell dropzone not ok...

does know how? - should send error header?

you in php code:

header("http/1.1 500 internal server error");

dropzone mark file reddish cross (given spritemap loaded).

javascript php ajax file-upload

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -