use long instead of double. verified Long is handled properly.  worked with upload of >3GB file