Files Type¶
FileQuery¶
Attributes:
path: strPath to search for filespaginationToken: strToken for paginated resultsquantity: intNumber of files to return
FileInfo¶
Attributes:
filename: strName of the filesize: intSize of the file in byteslast_modified: Optional[datetime]Date and time when the file was last modified
FileListInfo¶
Attributes:
files: List[FileInfo]List of file informationfolders: List[str]List of folder names
Base64File¶
Attributes:
filename: strName of filefile: strString of Base64public: boolMake file publicdefault: False
CopyFiles¶
Attributes:
from: strSource path of the file to be copiedto: strDestination path for the copied file
MoveFiles¶
Attributes:
from: strSource path of the file to be movedto: strDestination path for the moved file
FilesPermission¶
Attributes:
file: strPath to the filepublic: boolWhether the file should be publicly accessible
UploadOptions¶
Attributes:
maxTriesForEachChunk: intThe maximum amount of tries to upload each chunk to TagoIO. After this many unsuccessful tries of a single chunk, the upload is abortedtimeoutForEachFailedChunk: intTimeout before trying to upload the same chunk if the request failedcontentType: strThe file’s content type. This is optionalisPublic: boolIf the file can be accessed by anybody with a link or notdashboard: strDashboard ID. Uploading files from a widget requires dashboard, widget, and fieldId to be provided.widget: strWidget ID. Uploading files from a widget requires dashboard, widget, and fieldId to be provided.fieldId: strID of the field from the widget where the file is selected. Uploading files from a widget requires dashboard, widget, and fieldId to be provided.onCancelToken: Callable[[Callable[[], Any]], Any]Will provide a cancel token for you to cancel the requestchunkSize: intThe byte size of each chunk sent to TagoIO. This will influence how many requests this function will performonProgress: Callable[[float], Any]Will provide the upload percentage for this file