Fix #2. File pointer not set correctly when resuming upload.