indentlabs / indentlabs/notebook

Uploading an animated .gif as an image causes a 500 error

Open
#228 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug User feedback
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:
![arshan](https://user-images.githubusercontent.com/11140088/29378702-e606a06a-8274-11e7-848c-e571ecf2095c.gif)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.