This commit is contained in:
yumoqing 2025-10-11 14:22:48 +08:00
parent 419324103d
commit 776ed34626

View File

@ -184,6 +184,7 @@ def file_realpath(path):
async def downloadfile(url, headers=None, params=None, data={}, method='GET'): async def downloadfile(url, headers=None, params=None, data={}, method='GET'):
filename = url.split('/')[-1] filename = url.split('/')[-1]
filename = filename.split('?')[0]
fs = FileStorage() fs = FileStorage()
fpath = fs._name2path(filename, userid='tmp') fpath = fs._name2path(filename, userid='tmp')
try: try: