learningequality / learningequality/ricecooker
File uploads should preserve the original filename when possible
@rtibblesbot is already working on this.
Since Jul 22, 2026.
- Dominant language
- Python
- Stars
- 31
- Forks
- 77
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 3
Description
Observed behavior
When requesting a file upload URL from Studio, Ricecooker does utilize the original file name, but that is eventually discarded, meaning the filename for cheffed files will default to file
the issue is that ricecooker's implementation of the file upload URL stuff [...] creates the file object to get the upload URL, but then an entirely new file object gets created during the channel upload, so that data gets discarded.
Expected behavior
Ricecooker should use preserve the filename
User-facing consequences
These files end up showing Unknown filename to the end user.
Context
https://github.com/learningequality/studio/issues/4814
Looking at the following bit of code it does appear Ricecooker passes the filename along in its initial request for an upload URL, but according to the above quote, that gets discarded
https://github.com/learningequality/ricecooker/blob/b694f3d56ed300b80a77695e975c8009fcd9070f/ricecooker/managers/tree.py#L155-L166
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.
Assessment
This issue has not been assessed yet.