client/api: set json mime type for metadata

This commit is contained in:
Eva
2025-03-28 19:32:50 +01:00
parent d3c2da4f91
commit b3fa26b3fb

View File

@ -398,7 +398,7 @@ class Api extends events.EventTarget {
if (data) {
if (files && Object.keys(files).length) {
req.attach("metadata", new Blob([JSON.stringify(data)]));
req.attach("metadata", new Blob([JSON.stringify(data)], { type: "application/json" }));
} else {
req.set("Content-Type", "application/json");
req.send(data);