Form correct URL for errors of uploaded file