Checklist
Summary
Add a way for st.file_uploader to upload files directly to disk. This should not store the file in memory.
Why?
This is great for large files that don't fit into memory. An alternative is uploading them to S3 or some other external file storage (see #10827).
How?
Maybe add a parameter destination="memory"|"disk". Or we could (additionally?) have a config option that sets the location for all file uploaders. If "disk" is set, st.file_uploader should return the file path of the uploaded file instead of an UploadedFile object.
Additional Context
No response
Checklist
Summary
Add a way for
st.file_uploaderto upload files directly to disk. This should not store the file in memory.Why?
This is great for large files that don't fit into memory. An alternative is uploading them to S3 or some other external file storage (see #10827).
How?
Maybe add a parameter
destination="memory"|"disk". Or we could (additionally?) have a config option that sets the location for all file uploaders. If"disk"is set,st.file_uploadershould return the file path of the uploaded file instead of anUploadedFileobject.Additional Context
No response