OpenSlides / OpenSlides/openslides-backend
File upload: docx files are interpreted as zip
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9
- Forks
- 40
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 19
Description
Describe the bug
Sometimes the upload of a docx file leads to the following error message, indicating that the file is interpreted as a zip:
Fehler: FILENAME.docx does not have a file extension that matches the determined mimetype application/zip.
How to Reproduce
- contact me to get the example file
- open a meeting, go to files
- upload the file
Expected behavior
Ensure that docx files (and other allowed types) can be uploaded.
For example check if OpenSlides might take any other meta information from the file to determine the filetype that is not the file extension.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by obtaining the example DOCX file mentioned in the reproduction steps and reproduce the upload through a meeting's files area. Trace how the backend determines the MIME type versus the file extension, then verify that DOCX and other allowed types upload without the reported mismatch error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100