use api response for spee.ch thumbnail instead of re-creating it
This commit is contained in:
parent
17f611888c
commit
f8c26fbe34
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -4133,7 +4133,7 @@ const doUploadThumbnail = (filePath, thumbnailBlob, fsAdapter, fs, path) => disp
|
|||
type: UPDATE_PUBLISH_FORM,
|
||||
data: {
|
||||
uploadThumbnailStatus: COMPLETE,
|
||||
thumbnail: `${json.data.url}.${fileExt}`
|
||||
thumbnail: json.data.serveUrl
|
||||
}
|
||||
}) : uploadError(json.message || __('Thumbnail upload service may be down, try again later.'));
|
||||
}).catch(err => {
|
||||
|
|
|
@ -107,7 +107,7 @@ export const doUploadThumbnail = (
|
|||
type: ACTIONS.UPDATE_PUBLISH_FORM,
|
||||
data: {
|
||||
uploadThumbnailStatus: THUMBNAIL_STATUSES.COMPLETE,
|
||||
thumbnail: `${json.data.url}.${fileExt}`,
|
||||
thumbnail: json.data.serveUrl,
|
||||
},
|
||||
})
|
||||
: uploadError(
|
||||
|
|
Loading…
Add table
Reference in a new issue