Clean a bit the upload process.