Fix filename to avoid appending authenticated url params

Previously, upload.file.filename was returning "filename.ext?AWSAccessKeyId=...." instead of "filename.ext". Now using URI to parse the url and then extract the path without the trailing params, followed by a call to ::File.basename to get the filename out of that path. The regular expression that was parsing the raw url string before has been removed.