S3 file - added the possibility to specify a protocol for the uploaded file url