jQuery File Upload Validation Blueimp plugin

Leave a Comment
if you are using  blueimp jQuery File Upload plugin to upload your files, you may need to validate before you upload it to server.

please refer my tutorial on implemrentation this validation in live

Drag and Drop File Upload jQuery PHP Ajax HTML5 MySQL and Bootstrap

maxFileSize Validation of Blueimp File Upload Plugin: 

Use the below script to validate maxFileSize using blueimp file upload plugin.
$('#fileupload').fileupload({
   url: 'users/upload',
   maxFileSize : 50*1000
});
i had set 50 KB. You may set whatever you want. For example 1 MB -- 1000* 1000 10 MB -- 10000* 1000

minFileSize Validation of Blueimp File Upload Plugin: 

$('#fileupload').fileupload({
   url: 'users/upload',
   minFileSize : 1*1000
});




0 comments:

Post a Comment