Ensure file exists before upload
Encode URL