OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Upload files:

file = File["ExampleData/ocelot.jpg"]

Interpreter["UploadedFile"][file]

Restrict to a file format:

Interpreter[Restricted["UploadedFile","JPEG"]][file]

Restrict to all image files:

Interpreter[Restricted["UploadedFile","Image"]][file]

Restrict to a given size:

Interpreter[Restricted["UploadedFile",Automatic, 300]][file]

(StringTypeLink["UploadedFile", paclet:ref/interpreter/UploadedFile]) also works with a (RefLink[CloudObject, paclet:ref/CloudObject]):

object = CloudExport[Plot[Sin[x],{x,0,10}],"GIF","plot.gif"]

Interpreter["UploadedFile"][object]

(StringTypeLink["UploadedFile", paclet:ref/interpreter/UploadedFile]) also accepts a (RefLink[URL, paclet:ref/URL]):

Interpreter["UploadedFile"][URL["https://www.wolframcloud.com/objects/user-b0c28e9f-876d-4478-9d8b-9e7d18a9ea81/plot.gif"]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[CloudObject, paclet:ref/CloudObject])  ▪  (RefLink[File, paclet:ref/File])  ▪  (RefLink[URL, paclet:ref/URL])}, {Related Interpreter Types:  (RefLink[CachedFile, paclet:ref/interpreter/CachedFile])  ▪  (RefLink[FileName, paclet:ref/interpreter/FileName])  ▪  (RefLink[ImportFormatString, paclet:ref/interpreter/ImportFormatString])  ▪  (RefLink[ExportFormatString, paclet:ref/interpreter/ExportFormatString])  ▪  (RefLink[MIMETypeString, paclet:ref/interpreter/MIMETypeString])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})