This topic is locked

Upload file to Amazon S3

4/2/2020 2:41:56 AM
PHPRunner General questions
P
pamgeo author

Hi all ,
Has anyone tried to upload a file using phpruner file/image field settings to AMAZON S3?

Are there any suggestions or ideas on how to do this?

This could be a great feature now with the rest api capabilities introduced on v10.4

Admin 4/2/2020

REST API is for displaying data received from the third party datasource.
If you need to upload your files to Amazon S3 implement AfterAdd/AfterEdit event where you can move the file to Amazon S3. Here is the sample code to upload files to Amazon S3:

https://medium.com/@martindrapeau/simple-php-code-to-push-files-to-aws-s3-3396f9b3d02a