Update upload function to use 1MB chunks.
Merge branch 'test' into dev