Kinto / Kinto/kinto-attachment

How do we deal with unknown mime types?

Open
#75 3 comments 0 reactions 0 assignees View on GitHub
question stale
Dominant language
Python
Stars
41
Forks
8
Avg merge
1d 1h
Merged PRs (30d)
5

Description

As seen on Fennec, some boxes just don't have mimetypes registered see:

https://github.com/pocmo/Fennec-DLC-Catalog/commit/b6abf51514f3d0a330166b2a4482a821cc86858c

we should deal with this in kinto-attachement. https://github.com/Kinto/kinto-attachment/blob/master/scripts/upload.py#L61

maybe by raising an error ? another option is to guess it on the server-side in Kinto when it's not provided by the client maybe ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with scripts/upload.py at line 61 and compare its MIME-type handling with the Fennec example in commit b6abf51514f3d0a330166b2a4482a821cc86858c. Clarify whether unknown types should raise an error or be guessed server-side in Kinto; the work is done when one consistent behavior is selected and implemented for missing MIME types.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.