deansyd / icloud_storage

A flutter plugin for uploading and downloading files to and from iCloud
MIT License
42 stars 24 forks source link

Unable to create files in subfolder #4

Closed nivlaoh closed 3 years ago

nivlaoh commented 3 years ago

Hi Dean,

Thanks for creating this library. I was looking for Flutter solution for uploading files to iCloud and I came across this. I managed to upload files to iCloud. However, I'm seeking more granular option to create subfolders and for the files to be placed in subfolder. And I saw that the startUpload function only retrieves the file name of the path from last slash passed in, hence not being able to create any subfolders in iCloud.

The purpose is for me to create different date folders to segregate the backups.

Is there intention to support this moving forward?

Thanks.

Flutter version: 2.0.5 icloud_storage version: 0.2.0

deansyd commented 3 years ago

Hi @nivlaoh, there's no plan to implement subfolders creations yet. For your use case, I suggest renaming the file with the backup date affixed on upload. You can pass this new name to the optional 'destinationFileName' parameter in the 'startUpload' function.

nivlaoh commented 3 years ago

I see. Thanks for your response.