Reputation: 8952
I want to upload a pdf document from ios devices to my Http server. I cannot store them into my app. I want a file browser should be open and user selects its pdf and get its name and upload to server.
Upvotes: 1
Views: 1220
Reputation: 2573
Use UIDocumentPickerViewController
to let the user pick a document, and then upload the contents with NSURLSession
Upvotes: 0
Reputation: 2148
Please elaborate - what do you mean by "all doc files stored on my device"..
To the best of my knowledge if you want to store docs in your iPhone, they have to be done by the apps.. There are various document/file manager apps out there in the store..
You can design/write custom view controllers that would behave as file browsers to the list the (pdf) documents stored in your app container...
Upvotes: 0