We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4903e commit 3b89b98Copy full SHA for 3b89b98
1 file changed
app/extensions/file/local_uploader.py
@@ -17,7 +17,7 @@ def upload(self, **kwargs):
17
exists = File.query.filter_by(md5=file_md5).first()
18
if exists:
19
ret.append({
20
- "key": single.filename,
+ "key": single.name,
21
"id": exists.id,
22
"url": site_domain + '/assets/' + exists.path
23
})
@@ -34,7 +34,7 @@ def upload(self, **kwargs):
34
commit=True
35
)
36
37
38
"id": file.id,
39
"url": site_domain + '/assets/' + file.path
40
0 commit comments