executed once dialog added to upload process.