- Getting Started
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
PHP SDK S3 Reference
getHash ($config)
Returns: S3Hash
Method used to compute the hash for the javascript editor's imageUploadToS3 option.
Parameters:
-
$config
Configuration object for the Amazon S3 signature.
Type: Array
$config parameter:
-
timezone
Your server timezone. Read more on: http://php.net/manual/en/timezones.php.
Type: String -
bucket
The name of your bucket.
Type: String -
region
S3 region. If you are using the default
us-east-1
, it this can be ignored.Type: String -
keyStart
The folder where to upload the images.
Type: String -
acl
File access permission. E.g.
'public-read'
Type: String -
accessKey
Your Amazon access key.
Type: String -
secretKey
Your Amazon secret key.
Type: String
Response
The S3Hash that needs to be passed to the javascript editor if you want to upload an image or a file to Amazon S3.
Additional Resources
- Building a Support System Using Laravel PHP Framework and Froala HTML Editor Software – Part 1
- Building a Support System Using Laravel PHP Framework and Froala HTML Editor Software – Part 2
- Building a Support System Using Laravel PHP Framework and Froala HTML Editor Software – Part 3
- How To Use WYSIWYG Editor In PHP
Do you think we can improve this article? Let us know.