Class PostObject
Methods Summary
-
__construct ( Aws\S3\S3ClientInterface $client, string $bucket, array $formInputs, string|array $jsonPolicy )
Constructs the PostObject.
-
getClient ( )
Gets the S3 client.
-
getBucket ( )
Gets the bucket name.
-
getFormAttributes ( )
Gets the form attributes as an array.
-
setFormAttribute ( string $attribute, string $value )
Set a form attribute.
-
getFormInputs ( )
Gets the form inputs as an array.
-
setFormInput ( string $field, string $value )
Set a form input.
-
getJsonPolicy ( )
Gets the raw JSON policy.
Methods Details
__construct (
Aws\S3\S3ClientInterface
$client,
string
$bucket,
array
$formInputs,
string|array
$jsonPolicy
)
Constructs the PostObject.
Parameters
Aws\S3\S3ClientInterface |
$client | Client used with the POST object |
string | $bucket | Bucket to use |
array | $formInputs | Associative array of form input fields. |
string|array | $jsonPolicy | JSON encoded POST policy document. The policy will be base64 encoded and applied to the form on your behalf. |
Aws\S3\S3ClientInterface
getClient (
)
string getBucket ( )
Gets the bucket name.
Returns
string |
array getFormAttributes ( )
Gets the form attributes as an array.
Returns
array |
setFormAttribute ( string $attribute, string $value )
Set a form attribute.
Parameters
string | $attribute | Form attribute to set. |
string | $value | Value to set. |
array getFormInputs ( )
Gets the form inputs as an array.
Returns
array |
setFormInput ( string $field, string $value )
Set a form input.
Parameters
string | $field | Field name to set |
string | $value | Value to set. |
string getJsonPolicy ( )
Gets the raw JSON policy.
Returns
string |