3

When using Dropzone.js, and its uploadprogress event, the first time it fires the progress is 100.

I'm running it locally.

Is jumping straight to 100 normal? How could I test actual upload progress?

gen_Eric
  • 223,194
  • 41
  • 299
  • 337
Jason Varga
  • 1,949
  • 2
  • 21
  • 29

2 Answers2

0

While running on localhost even files with size of couple of megabytes can be uploaded so fast that there will be only one upload progress event triggered for whole file. To test the actual look&feel of your progress bar you better simulate slow network on your local machine.

Obviously, you can increase the limit of maximum allowed file size and try uploading gigabyte file, which is of course not always feasible. Or more simple way is to upload files from local slow storages: old usb sticks, or some network mapped drives.

Here is some post where you can find some references of tools which will help you to simulate low network capacity.

Community
  • 1
  • 1
zukalt
  • 11
  • 1
  • The linked question is about simulated lowering of bandwinth in Chrome, while this is about a different topic. There is pertinent information there, but I would link and include the pertinent information with proper attribution. – jordanhill123 Jun 16 '14 at 19:32
  • This was my first reply, didn't know that need to underline obvious things. – zukalt Jun 18 '14 at 13:04
0

Because you are running ur code locally. Try to look for some software you can limit you bandwidth or else at least try across local area network using another machine, and upload some bigger file, you can see the progress slowly uploaded from 1 to 100.

Su Beng Keong
  • 1,034
  • 1
  • 13
  • 30