filestack-php icon indicating copy to clipboard operation
filestack-php copied to clipboard

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

Open kazunn opened this issue 6 years ago • 3 comments

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"

kazunn avatar Feb 19 '19 03:02 kazunn

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

asakurayoh avatar Jun 28 '19 13:06 asakurayoh

+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...

cdrum avatar Sep 09 '19 03:09 cdrum

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.

TheCraig avatar Sep 21 '20 00:09 TheCraig