javascript - Check files in FormData -


i have form upload files. passing files use formdata:

        var data = new formdata($("#sendinvoiceform")[0]); 

than pass ajax :

 $.ajax({       url: sjsurlsaveinvoicelogo,       type: "post",       data: data,       processdata: false,       contenttype: false,       success: function (data) {        },       error: function (jqxhr, textstatus, errorthrown) {         //if fails       }     }); 

how can check files .img , size not larger 5000 kb?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -