bugfix
This commit is contained in:
parent
da511325e1
commit
7423e2ec0c
@ -108,13 +108,13 @@ def b64media2url(request, mediafile):
|
|||||||
debug(f'{env.keys()=},{fpath=},{fname=}')
|
debug(f'{env.keys()=},{fpath=},{fname=}')
|
||||||
base64_to_file(mediafile, fpath)
|
base64_to_file(mediafile, fpath)
|
||||||
path = fs.webpath(fpath)
|
path = fs.webpath(fpath)
|
||||||
return entire_url('/idfile?path=') + env.quota(path)
|
return entire_url('/idfile?path=') + env.quote(path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{e}\n{format_exc()}')
|
exception(f'{e}\n{format_exc()}')
|
||||||
return ' '
|
return ' '
|
||||||
if mediafile.startswith('http://') or mediafile.startswith('https://'):
|
if mediafile.startswith('http://') or mediafile.startswith('https://'):
|
||||||
return mediafile
|
return mediafile
|
||||||
url = entire_url('/idfile?path=') + env.quota(mediafile)
|
url = entire_url('/idfile?path=') + env.quote(mediafile)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
async def inference(request, *args, **kw):
|
async def inference(request, *args, **kw):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user