From bb36d08e85b14d867645b561c6f7ae8bac4958d1 Mon Sep 17 00:00:00 2001 From: dephea Date: Fri, 14 Jun 2024 08:21:41 +0300 Subject: [PATCH] Added "GA-Filename" header --- src/utils/FileAPI.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/FileAPI.js b/src/utils/FileAPI.js index 33d8f1a..f4d5666 100644 --- a/src/utils/FileAPI.js +++ b/src/utils/FileAPI.js @@ -51,7 +51,10 @@ class FileAPI { method: "post", url: CommonUtils.generateMethodURL(this._restAPI.params, method), data: fileData, - headers: {"Content-Type": mime.getType(filePath)} + headers: { + "Content-Type": mime.getType(filePath), + "GA-Filename": filePath.split('/').pop().split('\\').pop() + } }) return response.data; }