Search code examples
iphoneipaditunesfile-sharing

iTunes file sharing - how to upload different folders?


i want to use the "file sharing" feature in my app. I want to create a photo-app which has no content when the user starts it. Therefore the user can select an image-folder on his mac or pc. After that and starting the app on his iphone or ipad, all the content of his image-folder will be viewable.

I think its only possible to add simple files to my app - not content folders, right? Any ideas how i could do this?

Thanks for your time and help.


Solution

  • You cannot upload folder to the app.

    one way to do so

    create .zip file of that folder and upload. extract that zip file from app.

    checkout this project, It has a code to extract zip file.

    https://github.com/ZipArchive/ZipArchive