Upload: better filename parsing in url