filestack / filestack-php

Official PHP SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
56 stars 32 forks source link

Filestackclient upload - option 'path' does not set the s3 directory correctly #39

Open kazunn opened 5 years ago

kazunn commented 5 years ago

Hi,

In the upload function (FilestackClient->upload($filepath, $options )) we can pass option array as the second parameter with many options. As I understand 'path' is one of the available options according to docs which set the path inside the s3 bucket.

Issue : But no matter what you set with the option['path'] the uploads always end up in the root of the s3 bucket.

"version": "1.1.12"

asakurayoh commented 5 years ago

The docblock don't indicate that the option is available. But it is for uploadUrl()... It need to be implemented... thanks.

cdrum commented 5 years ago

+1 thanks. this is a bit annoying as our web picker allows it, but our sdk scripts don't, which means we have some files in one folder, and other files in another folder...

TheCraig commented 3 years ago

Hi was this ever resolved? I can't figure out as well how to set my specific AWS folder. Also, I am finding the final uploaded filename is the KEY rather than the filename I have set.