mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
(cherry picked from commit fe32b4372bf917c1a08474e072c57131b7e232e6) Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
fd52218350
commit
01e3867da1
@ -305,7 +305,7 @@ export default class HciVmImage extends HarvesterResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get uploadImage() {
|
get uploadImage() {
|
||||||
return async(file, opt) => {
|
return async(file, opt = {}) => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
||||||
formData.append('chunk', file);
|
formData.append('chunk', file);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user