fix bug: use url's path property to get the file local path