ImportedFileProperty
Qubes 5.6 Returns the value of the named property of a file imported by the Import Files component.
Syntax
ImportedFileProperty (GUID, propName)
GUID = imported file's identifier
propName = name of the file property whose value you want to retrieve
Remarks
Returns #VAL! if the requested identifier or property does not exist.
Alias functions provide direct access to certain properties.
| Name | Retrieved information | Direct alias |
|---|---|---|
| NAME | File name at the time of import | ImportedFileName(GUID) |
| SIZE | File size in bytes | ImportedFileSize(GUID) |
| URL | File URL (view or download) | ImportedFileURL(GUID) |
Note: This functions and its aliases take a unique identifier as the parameter. The Import Files component returns a list of reference numbers.
Examples
An imported file named "ProductImage.jpg" whose size is 250 KB and whose identifier is "{myGUID0001}" will return the following results:
ImportedFileName("{myGUID0001}")= "ProductImage.jpg"ImportedFileProperty("{myGUID0001}", "SIZE") = 25600 (= 250 x 1024)