Add ability to specify the uploaded file content-type
- Dominant language
- TypeScript
- Stars
- 189
- Forks
- 37
- Avg merge
- 17h 18m
- Merged PRs (30d)
- 17
Description
If unset, let the server assign it as it does now.
If set the `attachment` passed to kinto.js's `collection.createRecord(..)` should contain the type
https://github.com/Kinto/kinto-admin/blob/c648566146ff2670471024c4b4f8f0e26939df4b/src/components/record/RecordCreate.tsx#L37-L41
* [kinto.js supports extracting the type from the data URL](https://github.com/Kinto/kinto.js/blob/d68724e66b0e71f6479686dbd7182deaa64de878/src/utils.ts#L484)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/components/record/RecordCreate.tsx at the referenced lines and trace the attachment passed to kinto.js's collection.createRecord(..). Confirm that an explicitly set content type is included, while an unset type preserves the current server-assigned behavior; use the linked kinto.js data-URL handling as the reference for expected type extraction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100