Fixed issue that chunks are being uploaded more than once

If the chunk status is not marked as uploading, it will be uploaded again when other chunk has been uploaded.