mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
give default valeu for uploadImage opt (#308)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
3dcec52aff
commit
fe32b4372b
@ -305,7 +305,7 @@ export default class HciVmImage extends HarvesterResource {
|
||||
}
|
||||
|
||||
get uploadImage() {
|
||||
return async(file, opt) => {
|
||||
return async(file, opt = {}) => {
|
||||
const formData = new FormData();
|
||||
|
||||
formData.append('chunk', file);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user