s3upload()
Uploads a file to S3.
Requires Extension: S3 Resource Extension
s3upload( bucketName=string, objectName=string, source=object, acl=object, location=string, accessKeyId=string, secretAccessKey=string, host=string, timeout=number );
Returns: void
| Argument | Description | Default |
|---|---|---|
|
bucketName
string,
required
|
edit
Name of the bucket of your object to write Alias: bucket |
|
|
objectName
string,
required
|
edit
Name of the object (path) within the bucket of your object to write Alias: object |
|
|
source
object,
required
|
edit
Source file to write to S3. A string path to a file or a object created with the function "fileOpen". |
|
|
acl
object,
optional
|
edit
an array of struct where each struct represents an ACL grant Alias: aclObject |
|
|
location
string,
optional
|
edit
location of the S3 storage. Alias: region |
|
|
accessKeyId
string,
optional
|
edit
S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid]. Alias: accessKey, awsAccessKeyId, awsAccessKey |
|
|
secretAccessKey
string,
optional
|
edit
S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey]. Alias: secretkey, awsSecretkey, awsSecretAccessKey |
|
|
host
string,
optional
|
edit
the provider to connect, if not set Amazon AWS is used. Alias: provider, server |
|
|
timeout
number,
optional
|
edit
timeout for this execution |
10000 |
Examples
There are currently no examples for this function 39,096ms WARN No examples for function S3UploadSee also
- S3
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)