media-manager
media-manager copied to clipboard
[Improvement] File type validation
I think it'll be better if we can config file types, mimes and file size allow to upload via config.php
@folkevil sounds fantastic - is this something you have experience of? would you consider making a PR for it?
I just want to upload image using your media-manager and save urls in my database as string. To save urls , it's ok to upload when I use input type is text but actually I just want to upload with file input type because I want to validate image with laravel validation. Can you help me ?
or Is your media-manager can validate for only image ?
plz help me
Hi @linhtetpaing9
Currently the media-manager doesn't limit the types of files that are uploaded but this could easily be added to the config file as configurable array of mime-types as @folkevil suggested.
If you'd like to send a MR i'd be happy to accept this.
Thanks
Talv