Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File validation (backend) #13

Open
Reached opened this issue Sep 1, 2022 · 1 comment
Open

File validation (backend) #13

Reached opened this issue Sep 1, 2022 · 1 comment

Comments

@Reached
Copy link

Reached commented Sep 1, 2022

Hi there :)

First of all, thanks for providing this!

Is there a way to validate the file type on the server? I couldn't find anything in the source for this :)

Thanks!

@swilla
Copy link
Member

swilla commented Sep 1, 2022

I think you can extend the UppyS3MultipartController, and add a FormRequest here that would validate the filename for mime-types. If you find a clean way to make this configurable, pull requests are welcome.

https://github.com/TappNetwork/laravel-uppy-s3-multipart-upload/blob/master/src/Http/Controllers/UppyS3MultipartController.php#L92-L120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants