I'm using dropzone in uploading image, but I have a problem in maxFilesize of it, I put maxFilesize: 50
and according to it's document it is 50mb, but when I upload image that is more than 1mb it says that it's too large.
On my research I found a codepen, when I also try to make the maxFilesize: 50
, upload a 2mb image and when I hover the image it also said that the image is too large.
Here is the sample of my code
$('#imageUploader').dropzone({
paramName: 'file',
maxFilesize: 50,
acceptedFiles: "image/*",
uploadMultiple: false,
success: function( file, response ) {
console.log(response);
},
error: function( file, errorMessage ) {
console.log(errorMessage);
},
complete: function() {
console.log('Complete');
}
});
I don't know if it's really a bug or I just missing something to my code
I have tried this link I added this one in my code
init: function() {
this.on("uploadprogress", function(file, progress) {
console.log("File progress", progress);
});
}
but still has an error
when I try to pass 1mb below the file path, filename,basename,pathname,realPath
has a value but when I pass 4mb image it doesn't have a value
I'm using laravel for backend