return filePath together with fileUrl in pickupFile2Server
This commit is contained in:
parent
3232ba9c92
commit
840540d4b2
2
index.js
2
index.js
@ -229,7 +229,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data?._state==='SUCCESS' && data?.path) {
|
if (data?._state==='SUCCESS' && data?.path) {
|
||||||
return { _state: 'SUCCESS', fileUrl: this.makeServerUrl(data.path), ...data }
|
return { _state: 'SUCCESS', fileUrl: this.makeServerUrl(data.path), filePath: data.path, ...data }
|
||||||
}else {
|
}else {
|
||||||
return { _state: 'CLIENT_FAIL_UPLOAD_FILE', errorUpload }
|
return { _state: 'CLIENT_FAIL_UPLOAD_FILE', errorUpload }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user