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; }