Prepare for upload