use file.url instead of filename