You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
status.latest_file (pathlib.Path): The full file path to the file that has been latest uploaded
status.uploaded_files (list of pathlib.Path): The list of full file paths to all of the uploaded files. (uploaded in this session)
status.is_completed (bool): True if all the files have been uploaded
status.n_uploaded (int): The number of files already uploaded in this session
status.n_total (int): The number of files to be uploaded.
status.uploaded_size_mb (float): Size of files uploaded in Megabytes
status.total_size_mb (float): Total size of files to be uploaded in Megabytes
status.upload_id (str or None): The upload id used in the upload process, if any.
status.progress (float): From 0 to 1, indicating the current upload progress of all files. From flow.progress(). Todo: Is this calculated based on amount of files or total file size?
Goal: implement this UploadStatus class. It will serve as guide when implementing the props and state or the Upload_ReactComponent of the 0.7.0 release.
The text was updated successfully, but these errors were encountered:
The flow.timeRemaining() seems a bit unstable. The number given by the flow component will need some filtering before the value would be displayed to the user.
Here is a screen capture from situation where multiple files were "uploaded" (locally, no throttling). The timeRemaining() value jumped from 10s to ~20.000s when file was changed. This could be made working some day by keeping track of used time in the JS side and calculating longer time averages. As this is not priority right now, I'm dropping the attribute status.timeremaining from the list.
In the dash-uploader 0.7.0 update, the new (proposed) callback syntax is
du.UploadStatus attributes
The
du.UploadStatus
object could includestatus.latest_file
(pathlib.Path): The full file path to the file that has been latest uploadedstatus.uploaded_files
(list of pathlib.Path): The list of full file paths to all of the uploaded files. (uploaded in this session)status.is_completed
(bool): True if all the files have been uploadedstatus.n_uploaded
(int): The number of files already uploaded in this sessionstatus.n_total
(int): The number of files to be uploaded.status.uploaded_size_mb
(float): Size of files uploaded in Megabytesstatus.total_size_mb
(float): Total size of files to be uploaded in Megabytesstatus.upload_id
(str or None): The upload id used in the upload process, if any.status.progress
(float): From 0 to 1, indicating the current upload progress of all files. Fromflow.progress()
. Todo: Is this calculated based on amount of files or total file size?Dropped from the list (see du.UploadStatus objects for du.callback #68 (comment)).status.timeremaining
(float): The remaining time to upload all files, in seconds. Fromflow.timeRemaining()
.Goal: implement this
UploadStatus
class. It will serve as guide when implementing theprops
andstate
or theUpload_ReactComponent
of the 0.7.0 release.The text was updated successfully, but these errors were encountered: