ExternalStoragePut[expr]
writes expr to an external storage specified by $ExternalStorageBase.
ExternalStoragePut[expr,path]
writes expr to a specific path in an external storage specified by $ExternalStorageBase.
ExternalStoragePut[expr,ExternalStorageObject[...]]
writes expr to the service and path represented by an ExternalStorageObject.
ExternalStoragePut
ExternalStoragePut[expr]
writes expr to an external storage specified by $ExternalStorageBase.
ExternalStoragePut[expr,path]
writes expr to a specific path in an external storage specified by $ExternalStorageBase.
ExternalStoragePut[expr,ExternalStorageObject[...]]
writes expr to the service and path represented by an ExternalStorageObject.
Details and Options
- ExternalStoragePut returns an ExternalStorageObject.
- The default external storage is given by $ExternalStorageBase.
- ExternalStoragePut takes the following options:
-
ExternalStorageBase $ExternalStorageBase specifies which external storage service to use OverwriteTarget False whether to overwrite if the target file already exists
Examples
open all close allBasic Examples (2)
Save a computed value to the InterPlanetary File System (IPFS):
ExternalStoragePut[Range[10]]ExternalStorageGet[%]Save a computed value to Dropbox:
ExternalStoragePut[RandomColor[7], ExternalStorageBase -> "Dropbox"]ExternalStorageGet[%]Scope (2)
Default Path (1)
Path Specification (1)
Options (3)
ExternalStorageBase (2)
Dropbox (1)
IPFS (1)
Save an expression to the InterPlanetary File System (IPFS). IPFS does not require a target path because files in that system are identified by a content identifier (CID) that is automatically generated:
ExternalStoragePut[Entity["City", {"Lima", "Lima", "Peru"}][EntityProperty["City", "Population"]], ExternalStorageBase -> "IPFS"]ExternalStorageGet[%]OverwriteTarget (1)
By default, ExternalStoragePut does not overwrite a file if an existing path is provided and the expression to be saved is the same as the one in the existing file.
expr1 = Graphics3D[{Pink, Icosahedron[]}]ExternalStoragePut[expr1, "NonExistentFolderX77/icosahedron", ExternalStorageBase -> "Dropbox"]%["Path"]Save a different expression to the same path:
expr2 = Graphics3D[{Cyan, Icosahedron[]}]ExternalStoragePut[expr2, "NonExistentFolderX77/icosahedron", ExternalStorageBase -> "Dropbox"]%["Path"]By setting the OverwriteTarget option to True, the target file will be replaced:
ExternalStoragePut[expr2, "NonExistentFolderX77/icosahedron", ExternalStorageBase -> "Dropbox", OverwriteTarget -> True]%["Path"]Related Guides
History
Text
Wolfram Research (2020), ExternalStoragePut, Wolfram Language function, https://reference.wolfram.com/language/ref/ExternalStoragePut.html.
CMS
Wolfram Language. 2020. "ExternalStoragePut." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExternalStoragePut.html.
APA
Wolfram Language. (2020). ExternalStoragePut. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalStoragePut.html
BibTeX
@misc{reference.wolfram_2026_externalstorageput, author="Wolfram Research", title="{ExternalStoragePut}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ExternalStoragePut.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_externalstorageput, organization={Wolfram Research}, title={ExternalStoragePut}, year={2020}, url={https://reference.wolfram.com/language/ref/ExternalStoragePut.html}, note=[Accessed: 13-June-2026]}