Change url property to file when displaying a newly uploaded file.