Preparing upload.