"UploadedFile" (Interpreter Type)
A file to be copied to a cloud object.
Details
- "UploadedFile" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "UploadedFile" requires connectivity to the Wolfram Cloud.
- Unlike most interpretation types, "UploadedFile" has a side effect: it creates a CloudObject for the given file.
- "UploadedFile" treats File["file"] and URL["url"] as "file" and "url", respectively.
Allowed Forms
-
File["path"] a path to a local file URL["url"] a URL CloudObject["url"] a cloud object
Restriction Specifications
-
Restricted["UploadedFile",format] a file of a given format Restricted["UploadedFile",format,max] a file of a given format and size smaller than max bytes Restricted["UploadedFile",format,{min,max}] a file of a given format and size between min and max bytes - The bounds min and max can also be expressed as quantities in the appropriate unit (e.g. Quantity[1,"Megabytes"]).
Interpretation
- "UploadedFile" creates a CloudObject for the given file.
Examples
Basic Examples (3)
"UploadedFile" also works with a CloudObject:
"UploadedFile" also accepts a URL: