Improvements to the queued upload code to support large files