2

I have an application that the user takes a series of pictures, these pictures than need to be uploaded to a server for their online account.

At the moment, I am simply re sizing the images (still about 2mb an image) and uploading them 1 by 1.

The issue arises when the user closes the app mid-upload. Having issues with getting all the images appropriately.

Any elegent solutions? I was thinking of building in an upload manager - keeping track of what's successful and what is not. Restarting uploads next time they open the app. Possibly allowing the Online portion to send a push notification if the user failed to upload a complete set.

Any suggestions, links or guides are greatly appreciated.

msponagle
  • 330
  • 1
  • 11

1 Answers1

0

write the images to disk using unique names, deleting them from disk upon successful upload. if you need additional context, write that out as well. if you want to notify them, you can do that too.

You may also consider compressing the image and/or zipping them. Still, manageable partitions of the upload is a good idea.

justin
  • 104,054
  • 14
  • 179
  • 226
  • Currently doing what is suggested. Is there some best practices when it comes to uploading multiple images. I have kept each image as a seperate image (instead of packaging them), incase an upload get's inturrupted - at least a few images will make it through. – msponagle Apr 30 '12 at 12:24