dcc.Upload errors with big files
Aperta
Nessuno ha ancora preso questa issue.
bug
feature
P3
- Lingua principale
- Python
- Stelle
- 24.4k
- Fork
- 2.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 13
Descrizione
Context
- Creating an app where end users can upload files >1GB with
dcc.Upload. - The app code is the same as the first sample app of the doc page: https://dash.plotly.com/dash-core-components/upload
max_sizeis set to-1
Issues
- If I run the app with gunicorn or in my local env, some time after I upload the file the tab freezes or I get an internal server error (NOT a timeout because
dcc.Uploadhas some kind of async functionality). > This is similar to what this issue describes: https://github.com/plotly/dash/issues/1728
Additional context
- I've tried
dash-uploader(link) and it works okay but I’m concerned about (1) privacy (all files are accessible by all users by default, as opposed to session-specific storage) and (2) memory (how does saving many big files affect the app memory/performance) dash-uploaderis not an official component and it’s not maintained, which raises some concerns regarding production environment.
Request
dcc.Uploadbeing able to handle big files (500MB, >1GB, etc).- If the file is not been processed correctly (
list_of_contentsis empty) show a more helpful error.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l’esempio della documentazione di dcc.Upload e riproduci il comportamento usando file di oltre 500 MB negli ambienti local, gunicorn e Dash Enterprise descritti. Confronta gli input del callback quando content è vuoto o manca. Il lavoro è completato quando gli upload di grandi dimensioni vengono gestiti in modo affidabile e un upload non riuscito produce un errore utile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100