automatically extract filename from url