sadik7266 / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Max Size of Image #160

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

// error message you want to show

//define in STRING: { 

MaxSizeLimit: 'The file size not exceed than 4 MB'   // owned by Inderjit Singh

//add below line in  $(slave).change(function(){

var fileSize = this.files[0].size;
if(fileSize > '4194304')
{
     ERROR = MF.STRING.sizeLimit; 
}

Original issue reported on code.google.com by promatic...@gmail.com on 22 Aug 2012 at 7:17

GoogleCodeExporter commented 8 years ago
// error message you want to show

//define in STRING: { 

MaxSizeLimit: 'The file size not exceed than 4 MB'   // owned by Inderjit Singh

//add below line in  $(slave).change(function(){

var fileSize = this.files[0].size;
if(fileSize > '4194304')
{
     ERROR = MF.STRING.MaxSizeLimit; 
}

Original comment by promatic...@gmail.com on 22 Aug 2012 at 7:19

GoogleCodeExporter commented 8 years ago
In my opinion it won't work on ie because file api is not supported there...

Original comment by majk...@gmail.com on 22 Aug 2012 at 10:11