Unable to upload .py files from google chrome with the default supportedMimeTypes config #11257
Unanswered
s1sfa
asked this question in
Troubleshooting
Replies: 2 comments 1 reply
-
|
This shouldn't be an issue on latest, which is now at tag v0.8.2-rc2 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
If you're still experiencing this, try recording a screen capture and let us know which browser and OS you are using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
It looks like some browsers send different types for python files. Google chrome sends text/x-python-script, resulting in error.
I supposed it's configurable to add this to the yaml config, but it seems like the intention is to enable python files by default because, text/x-python seems to be accepted with the same default config.
Is this an update you would be willing to make for future versions so all browsers can upload .py files?
Version Information
0.8.1
Steps to Reproduce
upload file with .py extension in chrome. Current chrome version is
143.0.7499.170 (Official Build) (arm64)What browsers are you seeing the problem on?
Chrome
Relevant log output
{"level":"error","message":"ErrorController => error Unsupported file type: text/x-python-script","stack":"Error: Unsupported file type: text/x-python-script\n at fileFilter (/app/api/server/routes/files/multer.js:68:17)\n at wrappedFileFilter (/app/api/node_modules/multer/index.js:44:7)\n at Multipart.<anonymous> (/app/api/node_modules/multer/lib/make-middleware.js:132:7)\n at Multipart.emit (node:events:524:28)\n at HeaderParser.cb/app/node_modules/busboy/lib/types/multipart.js:358:14)\n at HeaderParser.push (/app/node_modules/busboy/lib/types/multipart.js:162:20)\n at SBMH.ssCb [as _cb] (/app/node_modules/busboy/lib/types/multipart.js:394:37)\n at feed (/app/node_modules/streamsearch/lib/sbmh.js:219:14)\n at SBMH.push (/app/node_modules/streamsearch/lib/sbmh.js:104:16)\n at Multipart._write (/app/node_modules/busboy/lib/types/multipart.js:567:19)","storageErrors":[],"timestamp":"2026-01-07T23:19:49.471Z"}Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions