You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set the accepted file types to upload to "application/java-archive" I get the accepted files in my file-explorer to upload All Files (*.*) instead of only .jar
Set the allowed file types to "application/java-archive" and try to upload a file
Add to the config
resourceUpload: f({'application/java-archive': {maxFileSize: '16MB'},//Will only allow ALL files// 'application/zip': { maxFileSize: '16MB' }, //Will only allow .zip even if java-archive is active})
uncomment the zip and you will only be able to upload .zip files
Additional information
Would love if I could set a custom list of file types the button will allow me to upload by default
👨👧👦 Contributing
🙋♂️ Yes, I'd be down to file a PR fixing this bug!
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I believe this is a browser/platform issue, not an Uploadthing issue, as both cases are working fine for me on Arc/MacOS.
Screen.Recording.2025-02-26.at.11.50.50.mov
Would there be any way to fix this? I'm using the most used browser in the world Chrome, and the latest version of windows 11, has to be a way to support it.
Maybe am I able to set the specific files the client can upload by default by overriding their types?
Ok, we are using mime types like that for the UT components, so that lines up. I think we might be able to do mimes + extensions though for better windows support.
Provide environment information
Describe the bug
When I set the accepted file types to upload to "application/java-archive" I get the accepted files in my file-explorer to upload
All Files (*.*)
instead of only .jarLink to reproduction
https://stackblitz.com/edit/github-92heuda2?file=src%2Fserver%2Fuploadthing.ts
To reproduce
Set the allowed file types to "application/java-archive" and try to upload a file
Add to the config
uncomment the zip and you will only be able to upload
.zip
filesAdditional information
Would love if I could set a custom list of file types the button will allow me to upload by default
👨👧👦 Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: