Editor Upload // Example of integration with Amazon S3 Bucket
Editor Upload // Example of integration with Amazon S3 Bucket

Good morning all,
I am using Editor Upload function to upload users photos and documents. I would like to use amazon S3 bucket as a repository for those documents.
I was wondering if this is possible and if an example of integration exists somewhere.
I did not find any evident google link.
ty
f
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Sorry, this is not something I have an example of. However, you could presumably use the S3 API (or ssh) to upload the file from your server-side script like you might with any other file.
Allan
Thanks Allan,
I did try but despite it looked pretty simple I hit some issues with the namespace. It seems I cannot call the API functions from within the Upload constructor.
I to not think it is a problem with your library .It is due to my limited knowledge of PHP namespaces.
I will sitck with my filesystem or the moment. If I make it work I will try to post the example.
ty
f
I wrote a solution to this problem. If anyone is interested, I can post what I did.
I am interested!
Please post it. i did some tests but rather unsuccessful, it would be great to have a working example to start with.
ty
f
This is an example based upon one of my implementations using joins. I'm uploading images to s3 that I embed in a website, which is why the ACL is public-read. You may require other options. I recommend you vet every line of this code prior to implementing it yourself. It is simply an example. Use at your own risk.
Also, I'm using aws php sdk v3.