fix : 오류수정
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class UploadAdapter {
|
||||
constructor(loader) {
|
||||
constructor(loader, url) {
|
||||
this.loader = loader;
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
upload() {
|
||||
@@ -13,7 +14,7 @@ class UploadAdapter {
|
||||
|
||||
_initRequest() {
|
||||
const xhr = this.xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', '/comm/ckeditor/image/fileUpload', true);
|
||||
xhr.open('POST', this.url, true);
|
||||
xhr.responseType = 'json';
|
||||
}
|
||||
|
||||
@@ -43,5 +44,5 @@ class UploadAdapter {
|
||||
}
|
||||
}
|
||||
function getDownloadUrl(item) {
|
||||
return encodeURI(`${API_ROOT_URL}/download/images/${item.linkId}`);
|
||||
return encodeURI(`${API_ROOT_URL}/download/images/${item.linkId}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user