fohrloop / dash-uploader

The alternative upload component for python Dash applications.
MIT License
141 stars 29 forks source link

small file upload: division by zero.. #101

Open afkrause opened 1 year ago

afkrause commented 1 year ago

pre-release version of dash-uploader 0.7.0, trying to upload a small jpeg image:

File "dash_uploader/callbacks.py", line 39, in wrapper status = UploadStatus( File "dash_uploader/uploadstatus.py", line 67, in init self.progress = uploaded_size_mb / total_size_mb

ZeroDivisionError: division by zero

fohrloop commented 1 year ago

Thanks for filing the issue @afkrause ! This should be a really easy fix.