mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-16 21:11:16 +00:00
download file in the correct format
This commit is contained in:
parent
02f677a170
commit
d3013fa1e9
1 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ export default {
|
|||
const filetypes = /jpeg|jpg|gif|png/;
|
||||
const extname = filetypes.test(path.extname(file.fileName).toLowerCase());
|
||||
if (!extname) return undefined;
|
||||
return config.domain + "/media/" + file.fileID;
|
||||
return config.domain + "/media/" + file.fileID + "/" + file.fileName;
|
||||
},
|
||||
getFile() {
|
||||
if (!this.$props.files || this.$props.files.length === 0)
|
||||
|
|
@ -296,7 +296,7 @@ export default {
|
|||
const filetypes = /jpeg|jpg|gif|png/;
|
||||
const extname = filetypes.test(path.extname(file.fileName).toLowerCase());
|
||||
if (extname) return undefined;
|
||||
file.url = config.domain + "/files/" + file.fileID;
|
||||
file.url = config.domain + "/files/" + file.fileID + "/" + file.fileName;
|
||||
return file;
|
||||
},
|
||||
getDate() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue