Skip to content

Commit

Permalink
Add documentation for PanoptoUploadStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Feb 5, 2025
1 parent ee22fdf commit dafd777
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions panopto/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,26 @@ def get_upload_id(self):


class PanoptoUploadStatus(object):
"""
This class encapsulates Panopto's upload status types:
0: Uploading - An upload was created, and has not been cancelled
or completed
1: UploadComplete - The upload has been completed, but has yet to
be transferred to storage
2: UploadCancelled - The upload was cancelled by the user and
hasn’t been deleted yet
3: Processing - The upload is being processed
4: Complete - The upload has been processed and can now be used by
the Panopto system
5: ProcessingError - There was an error during transfer
6: DeletingFiles - The upload was cancelled or timed out, and is
being deleted
7: Delete - The upload was cancelled or timed out and was deleted
8: DeletingError - There was an error while deleting the upload
https://support.panopto.com/resource/uploadapi/index.html
"""

UPLOAD_CREATED = 0
UPLOAD_COMPLETE = 1
Expand Down

0 comments on commit dafd777

Please sign in to comment.