Ink / ios-picker

[DEPRECATED] The easiest way to import content into your application. http://filepicker.io
MIT License
226 stars 78 forks source link

Doesn't save files to mentioned buckets and path #98

Closed nitinhayaran closed 8 years ago

nitinhayaran commented 9 years ago

I have tried to initialise the provided ios example with code like this:

    [FPConfig sharedInstance].APIKey = @"API_KEY";

    //! Filepicker.io configuration (optional)

    [FPConfig sharedInstance].storeAccess = @"private";
    [FPConfig sharedInstance].storeContainer = @"my-personal-bucket";
    [FPConfig sharedInstance].storeLocation = @"S3";
    [FPConfig sharedInstance].storePath = @"some/directory/";

But its not saving files to the mentioned bucket, the selected images / files are being uploaded into the default bucket mentioned in web console.

Even storePath is being ignored.

ghost commented 8 years ago

Hi @nitinhayaran , Did you resolve this?
I am getting it, seem can't store file to right path as config. @_@ Thanks,

nitinhayaran commented 8 years ago

No I haven't been able to get this working, I ended up moving file myself.

pJes2 commented 8 years ago

Hi @nitinhayaran @zorovu Could you please check v5.1.3 and let me know if the problem is fixed for you?

ghost commented 8 years ago

Hi @pJes2 , It is fixed with Local files : Camera, Albums. BUT still not right the store path when i upload from Cloud : Google Drive
Please check again.

ghost commented 8 years ago

Hi @pJes2 , It's still not fixed with files on Dropbox, Google Drive, just work on local files.

pJes2 commented 8 years ago

@zorovu Ok, we have identified the problem, but it's server-side rather than library specific, we will be deploying backend changes next week + small patch to ios-picker. I'll let you know when it's ready.

ghost commented 8 years ago

Hi @pJes2 , Please let me know when it's ready, because i am using ios-picker in my app. Currently i just turn on with local files. Thanks you,

pJes2 commented 8 years ago

@zorovu Please try v5.1.4 and let me know if it is working for you.

ghost commented 8 years ago

Hi @pJes2 , I just checked on v5.1.4.

pJes2 commented 8 years ago

@zorovu are you sure you are using 5.1.4? I'm getting file FROM Google Drive with S3 store set in code:

 [FPConfig sharedInstance].storeAccess = @"public";
 [FPConfig sharedInstance].storeContainer = @"mybucket";
 [FPConfig sharedInstance].storeLocation = @"S3";
 [FPConfig sharedInstance].storePath = @"myfolder/";

and it is uploaded to correct bucket/folder on S3, BUT we have yet another bug - the 'storeAccess' value ('public') is omitted and set to 'private' every time. Unfortunately it will require API servers deployment to fix this bug and another deploy is planned at the beginning of the next week.

ghost commented 8 years ago

Hi @pJes2 , I'm sure are using 5.1.4 (clone by cocoapods) and config like your code. It's working with local images ( my phone ), BUT with file from Google Drive , the link is permission deny.

pJes2 commented 8 years ago

@zorovu oh ok, that's the case with the 'storeAccess' being omitted in our API, we are going to fix it in next API release, but could you please check on S3 if the files are stored properly with right bucket and folder (they should, but just in case)?

ghost commented 8 years ago

Hi @pJes2 , YES, the files are stored properly with right bucket and folder. Waiting next API release :)

Thanks @pJes2

pJes2 commented 8 years ago

@zorovu

We have deployed changes to API, storeAccess should now work as intended.