Fix import backup file request (#326)
The file wasn't send correctly due to converting it to a string.
This commit is contained in:
@@ -215,7 +215,7 @@ export class RequestManager {
|
|||||||
data = new FormData();
|
data = new FormData();
|
||||||
|
|
||||||
Object.entries(formData).forEach(([key, value]) => {
|
Object.entries(formData).forEach(([key, value]) => {
|
||||||
if (value !== undefined) data.append(key, `${value}`);
|
if (value !== undefined) data.append(key, value); // "append" automatically converts non string or blob values to strings
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user