0

Code working properly but taking too much time to upload image. Am not able to understand why its happen ?. It may be server side or need to check in

my code

AFHTTPClient *client= [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:BaseUrl]];

Need help

Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85
  • 1
    The code you quoted is most definitely not the whole code used to perform the upload... – jcaron Jan 15 '16 at 16:28
  • You haven't told use anything about the speed of your Internet connection. If you use some kind of *DSL or cable connection, it is quite frequent that upload speeds are a lot slower than download speeds. What upload speeds are you getting with other devices/to other sites using the same Internet connection? – jcaron Jan 15 '16 at 16:29
  • I would like to suggest you to upload image using multipart, since it is much faster and helpful for sending large data. This http://stackoverflow.com/questions/8564833/ios-upload-image-and-text-using-http-post might help you to better understand – Piyush Sharma Jan 16 '16 at 19:10

1 Answers1

0

File upload is bit high to system. Bcz it has to validate then add those in temp upload path then finally upload it to main folder. So it will take some time with the few manner.

  1. Internet Speed.
  2. File size
  3. PHP Memory size
Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85