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

Content Uploader: limit accepted file types #489

Closed
MaximeMarck opened this issue Jul 31, 2018 · 3 comments
Closed

Content Uploader: limit accepted file types #489

MaximeMarck opened this issue Jul 31, 2018 · 3 comments

Comments

@MaximeMarck
Copy link

I need to be able to restrict the file types uploaded by users to Box (we want to avoid exe or cmd files to uploaded for example).

I understand that I can check this in the callback once the upload is done and then remove the file. This solution could work, however that requires the file to be sent first.

Are there other solutions to restrict this earlier in the process on the client side? Or having Box backend to handle that?

Would it be possible to add an option to pass an array of accepted file extensions which would then be applied on the input? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/file#Limiting_accepted_file_types

@JustinHoldstock
Copy link
Contributor

Hey @MaximeMarck,

If you could send your application's enterprise ID to preview-team@box.com, I'd love to get you in touch with Box Consulting, since they'll be better equipped to help you out with implementation.

The other thing, if you want, we can mark your issues as enhancements and open up for pull requests for the issues you're seeing.

Thank you!
Justin

@JustinHoldstock
Copy link
Contributor

One other things would be to start a discussion on our dev forum, found here

@DanDeMicco
Copy link
Contributor

Closing this due to inactivity. Feel free to reopen it and tag it as an enhancement if you still need this. We would also welcome PR's!

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

3 participants