fohrloop/dash-uploader

small file upload: division by zero..

afkrause opened this issue · 1 comments

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

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