1

Possible Duplicate:
How can I upload a photo to a server with the iPhone?

I want to upload a particular file on server, which is stored in iphone directory.

Simply, to upload any file we can use the "Browse" button.

When you click on this button we can get the file directory and choose any file & we can upload the particular file.

I do the same thing here.

any tutorial or link.

suppose, I am stored the excel file in iphone and i want to upload this file on server which path are not available. but i get the path on using the browse file.In short browse content is my problem.

Community
  • 1
  • 1
Sam007
  • 1,385
  • 3
  • 17
  • 32
  • http://stackoverflow.com/questions/5801049/uploading-photo-through-programing-in-objective-c/5801303#5801303 – Chetan Bhalara Apr 26 '11 at 08:33
  • Check out http://allseeing-i.com/ASIHTTPRequest/ (ASIHTTPRequest). It's a library built for handling HTTP requests and has an ASIFormDataRequest class that can be used for uploading files to a server. – joshholat Jun 02 '11 at 17:41

1 Answers1

1

Which is your problem, uploading file to server, browse content? If it is uploading to server, to upload to HTTP server see this so link..This link might be helpful too..This tutorial tells about uploading an image to file..

Ok browsing part..If your app is not targeting a jailbroken phone, your app can only access files within its own sandbox. You can use NSFileManager and NSDirectoryEnumerator to access files in this sandbox.See this tutorial for NSFileManager.

Community
  • 1
  • 1
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
  • suppose, I am stored the excel file in iphone and i want to upload this file on server which path are not available. but i get the path on using the browse file.In short browse content is my problem. – Sam007 Apr 26 '11 at 08:53