media-manager icon indicating copy to clipboard operation
media-manager copied to clipboard

[Improvement] File type validation

Open folkevil opened this issue 7 years ago • 3 comments

I think it'll be better if we can config file types, mimes and file size allow to upload via config.php

folkevil avatar Jun 26 '17 13:06 folkevil

@folkevil sounds fantastic - is this something you have experience of? would you consider making a PR for it?

talvbansal avatar Jun 26 '17 13:06 talvbansal

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

linhtetpaing9 avatar May 28 '18 17:05 linhtetpaing9

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

talvbansal avatar May 29 '18 13:05 talvbansal