We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e320c53 commit ed31322Copy full SHA for ed31322
public/js/index.js
@@ -351,8 +351,8 @@ function uploadFile(file, callback) {
351
callback(xhr.responseText);
352
}
353
};
354
- let contextPath = window.location.pathname.substr(suburl.length).replace(/^\/+$/g, '');
355
- let contextPathArray = contextPath.split('/');
+ const contextPath = window.location.pathname.substr(suburl.length).replace(/^\/+$/g, '');
+ const contextPathArray = contextPath.split('/');
356
xhr.open("post", suburl + "/" + contextPathArray[0] + "/" + contextPathArray[1] + "/attachments", true);
357
xhr.setRequestHeader("X-Csrf-Token", csrf);
358
const formData = new FormData();
0 commit comments