is it possible to upload only files of an extension i.e pdf or doc and if size os single or group of files is less than x Mb #459
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?
is it possible to put somewhere a filter to allow only the upload of files with a certain extention.
i.e: only files with extentions .pdf or .doc but not .exe to be added to the list of files.
Another thing is to restrict files that are too large i.e: only allow files under 1 MB to be added to the list of files.
Another could be if the total list of files surpasses a certain size don't allow more to be added.
i.e: don't allow if the total size of the list is already 5 MB.
let me know if those 3 possibilities are possible and if not if those will be added in the future or how could we do it ourselves maybe it is possible to build a custom solution aroud this component.
thanks
O
@ovione you can use
allowedMimeTypeto prevent upload not supported formats,maxFileSizeto set maximum filesize to load:Example:
What about other file types like xls and xlsx because it only works for image/*
thanks @ghost
Hello,
it is possible to change ngClass border to red when wrong (other than "pdf") file is over dropdown area?
is it possible to upload file of cutom file extension type of mimetype 'application/x-gzip'. this will be very helpful ?
@ghost this seems to be not working with xls and xlsx files. Could you give example of the usage please