maxFileSize && allowedFileType not working #463
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
private uploaderOptions: FileUploaderOptions = {
autoUpload: true,
isHTML5: true,
filters: [],
removeAfterUpload: false,
disableMultipart: false,
allowedFileType: ['image/png', 'image/jpg', 'image/jpeg'],
maxFileSize: 150000
};
Hey people,
when I try uploading a file (.jpg, 17.5 kb) with these options it just doesn't work. If I remove allowedFileType and maxFileSize it works like a charm
I also tried things like allowedFileType: ['png', 'jpg', 'jpeg'],
Documentation is quite bad so I couldn't find any help here, nor on the Google
Hope you'll be able to help me, cheers!
Hi,
I have a problem regarding size. I don't know if you could help me but my problem is quite related but my problem is that files got unreadable when they exceed the 32kb and this is my call:
this.uploader = new FileUploader({url: this._url_Where_To_Upload_Files, autoUpload:true});
Do you have any clue?
Try to use
allowedMimeType: ['image/png', 'image/jpg', 'image/jpeg'],instead of
allowedFileType: ['image/png', 'image/jpg', 'image/jpeg'],My config works fine at first glance:
MaxFileSize just filters out from the queue .. is there any way I can display the names of invalid files?
onWhenAddingFileFailedallows doing that.item.namecontains the name of invalid file.is there a default value for maxFileSize && allowedFileType?