From af22c2746e9b160337539cc810e0f2ccae47e695 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 16 Jul 2017 11:59:19 +0200 Subject: [PATCH] Fix in uploading assets. --- src/Squidex/app/shared/services/assets.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squidex/app/shared/services/assets.service.ts b/src/Squidex/app/shared/services/assets.service.ts index 1f208f270..a27395123 100644 --- a/src/Squidex/app/shared/services/assets.service.ts +++ b/src/Squidex/app/shared/services/assets.service.ts @@ -198,7 +198,7 @@ export class AssetsService { return new Observable(subscriber => { const url = this.apiUrl.buildUrl(`api/apps/${appName}/assets/${id}/content`); - const req = new HttpRequest('PUT', url, file, { + const req = new HttpRequest('PUT', url, getFormData(file), { headers: new HttpHeaders({ 'If-Match': version.value }),