Changing int to int64_t fixes a 2GB upload limit bug for me

I was able to get a 3GB file to upload with this patch.  I don't know if it's right or not since I'm still a beginner at c/c++.