CloudExport
CloudExport[expr,"format"]
exports expr to a new anonymous cloud object in the specified format.
CloudExport[expr,"format","uri"]
exports to a cloud object at a given URI.
CloudExport[expr,"format",CloudObject["uri"]]
exports to a given cloud object.
Details and Options
- CloudExport exports raw content to cloud objects. Unlike CloudDeploy, it does not set up active executable structures in the cloud.
- CloudExport returns the CloudObject to which it saves.
- CloudExport[expr,"format",URL["uri"]] is also supported.
- To copy an existing local file to the cloud, use CopyFile.
- CloudExport allows the following options:
-
AutoCopy False whether to make a copy when opened CachePersistence Automatic controls the time duration for which an object will be cached by a client CloudBase Automatic what cloud to export to CloudObjectNameFormat $CloudObjectNameFormat format to use for the name portion of the URL CloudObjectURLType $CloudObjectURLType base type of URL to use (obj, env, ...) IconRules Automatic icons to use for the exported object MetaInformation {} metainformation for the exported object Permissions Automatic permissions for the exported object SourceLink Automatic object to be linked as the source - With the default setting PermissionsAutomatic, CloudExport creates a cloud object with permissions set to $Permissions, which is usually "Private".
Examples
open allclose allScope (1)
Export to a named cloud object specified by a string:
Export to a named cloud object specified by a CloudObject:
Options (3)
CachePersistence (1)
AutoCopy (1)
Applications (1)
Export a list of all countries as a CSV file on the Wolfram Cloud:
The data can be imported using CloudImport:
Possible Issues (1)
Using CloudExport for expressions like APIFunction that have special behavior in the cloud does not activate their special behavior:
Calling the cloud object does not do any computation since an expression is simply displayed using text, which happens to be imported as something readable by URLExecute:
In order to create a usable APIFunction, it must be deployed with CloudDeploy or CloudPublish:
Now it reads the parameters and evaluates the function when invoked, as intended:
Text
Wolfram Research (2014), CloudExport, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudExport.html (updated 2019).
CMS
Wolfram Language. 2014. "CloudExport." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudExport.html.
APA
Wolfram Language. (2014). CloudExport. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudExport.html