Closed luisbatista closed 7 years ago
@luisbatista , all folder path should end with a slash (/). In your example use "games/" instead of "games". In S3 and other cloud based storages folders are merely a file prefix. Therefore, DF requires a slash at the end of a folder name to treat it as a folder rather than a file.
Hello @df-arif ,
Thank you for your reply.
I made another solution, create a external script (in the public folder) who receive a POST from my DF script with the content and other information and upload to Amazon S3. This external script use the lib "aws" in 'vendor' folder of DF and can process files in batch.
But I think is important to have a complete (and can be run) example to implement an Amazon S3 integration. The current information and examples are very vague and do little to make a proper implementation of this service.
Best regards, LB
I am glad you found another solution and were able move on. Thank you for your feedback. We are always trying to improve our docs and examples and will take your feedback into consideration.
Hello,
I have problems to make to work an upload to Amazon S3 using the PHP script service.
I have activate the “File” > “AWS S3” service, configured and tested with API DOCS, using an upload of a URL file, and works.
Ok, now I create a PHP Script Service to manage post from the website to this service, I receive the image in Base64, and want to save to AWS S3.
The cURL is:
And get this:
This is the message returned by API DOCS, but if I try to make the same using Postman I get a “Forbidden” message!
I try in the path put this: "https://s3-eu-west-1.amazonaws.com/myfolder/games", but get same message.
Can help me to put this to work? The Amazon S3 service, in DF, only works for images in a Url ?
Best regards, LB