Initialize upload.