UPLOAD FILE TO STAGE
On this page
Uploads a file at the specified path within a Stage.
Syntax
UPLOAD FILE TO STAGE '<stage_path>'
[ { IN GROUP { ID '<deployment_ID>' | '<deployment_name>' } | IN { ID '<deployment_ID>' | '<deployment_name>' } } ]
FROM '<local_path>' [ OVERWRITE ]
Arguments
-
stage_
: The path in the Stage where the file is uploaded.path It must end with a trailing /
. -
deployment_
,ID deployment_
: The ID or name of the deployment (workspace group) in which the Stage is attached.name -
local_
: Specifies the path to the file in the local directory.path
Remarks
-
If the
OVERWRITE
clause is specified, any existing file with the same name at the specified path is overwritten. -
The
IN
andIN GROUP
clauses specify the ID or the name of the deployment in which the Stage is attached.
Example
The following command uploads a file to the Stage attached to the deployment named s2wsg and overwrites any existing files with the same name at the specified path:
UPLOAD FILE TO STAGE '/data/stats.csv' IN 's2wsg'FROM '/tmp/stats.csv' OVERWRITE;
Last modified: February 13, 2025