indentlabs / indentlabs/notebook
Uploading an animated .gif as an image causes a 500 error
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 410
- Forks
- 78
- Avg merge
- 1d
- Merged PRs (30d)
- 9
Description
### Expected behavior
Uploading an animated .gif should in the image uploader either:
A: Upload the animated gif successfully, like any other image format
B: Present a proper error stating this image type cannot be uploaded
### Actual behavior
Attempting to upload an animated .gif causes the webpage to hang for several seconds, then displays a 500 internal server error message
### Steps to reproduce the behavior
1: Edit a notebook page
2: Navigate to the Gallery tab (URL `/edit#gallery_panel`)
3: Attempt to upload an animated .gif
For reference, this is the image file that was attempted:

Contributor guide
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 in the notebook page editor at the Gallery tab (/edit#gallery_panel) and reproduce the failure with the linked animated GIF. Trace the upload flow to determine whether animated GIFs should succeed or receive a clear unsupported-type error; done means the page no longer hangs or returns a 500 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100