-2

I have to accelerate the process of file upload coz our application has to handle large files. looking for a good technique to improve file upload process.

Sadanand
  • 1,080
  • 3
  • 13
  • 30
Kiran Ghatage
  • 407
  • 1
  • 8
  • 15
  • get a better ISP? – Jeff May 22 '18 at 10:44
  • 1
    As the operator of the server there is absolutely nothing you can do. You are at the mercy of the upload speed of the user connected to you. If you control the client that's sending the information, look in to compressing the data first. That's about it. – Rory McCrossan May 22 '18 at 10:48

1 Answers1

5

While it's true that you can't change the amount of bandwidth the user has available, you're not totally helpless; there are a number of things you can do to make life easier for them:

  • Obviously, give the user visible feedback on progress of each upload as well as on the combined total.
  • Make sure individual uploads can be paused if necessary.
  • In the case of failed or partial uploads, don't discard the received data; make sure there's an easy way for the user to find it and resume the upload instead of starting from scratch.
  • If there are multiple simultaneous uploads going on, watch the upload rate -- if they're going very slowly, indicating bandwidth constraints, consider automatically switching to sequential uploads instead (so that in case of interruption the user won't be stuck with a bunch of partial files).
  • Give the user something to do while they wait. If there's other data entry related to the uploaded files, let them do that during the upload instead of just making them stare at a progress bar. (For example if they're uploading video, let them fill in the title and description and tagging and etc while the upload is in progress.)
  • There's a whole host of UX techniques you can use to make the upload feel faster than it actually is. (A "backwards decelerating ribbed progress bar" can be perceived as 12% faster than a solid bar, for example.)
Daniel Beck
  • 20,653
  • 5
  • 38
  • 53