Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

'Use "editor.import.api'", '"editor.upload.image.api'", '"editor.upload.video.api'", '"editor.upload.file.api' 키를 사용하여 업로드 및 임포트 API를 설정합니다.

서버쪽 API (URL)는 Back-end 구현에 따라 변경해야 합니다. 자세한 사항은 서버연동 매뉴얼을 참고합니다.

설정방법

Key설명

" keys to configure upload / import APIs.
Server API addresses (URL) should correspond to those of back-end implementation details. Please refer to Integration page for further information.

Configuration Method

KeyDescriptions
editor.import.maxSize

임포트 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 10MB)
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 임포트 가능한 파일 크기가 달라 질 수 있습니다Set the maximum importable file size. (unit - byte, default - 10MB)

This value is set by the browser (client) and the maximum importable file size may vary depending on the server configuration.

editor.import.api임포트

Set import API (URL)

를 설정합니다. 해당

. Document files will be sent to the designated API (URL)

로 문서 파일을 전송합니다

.

editor.import.param임포트 요청시 함께 전송 할 파라메터를 설정합니다

Set the parameter to be sent with the import request.

editor.import.headers

Status
colourYellow
titleRELEASE 2.7.0 OR ABOVE
 Set the header to be sent with the import request.

editor.upload.maxSize업로드 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 3MB)
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 업로드 가능한 파일 크기가 달라 질 수 있습니다

Set the maximum uploadable file size. (unit - byte, default - 3MB)

This value is set by the browser (client) and the maximum uploadable file size may vary depending on the server configuration.

editor.upload.image.api이미지 업로드

Set image upload API (URL)

을 설정합니다. 해당

. Images will be sent to the designated API (URL)

로 이미지를 전송합니다

.

editor.upload.image.param이미지 업로드 요청시 함께 전송 할 파라메터를 설정합니다

Set the parameter to be sent with the image upload request.

editor.upload.image.headers

Status
colourYellow
titleRELEASE 2.7.0 OR ABOVE
 Set the header to be sent with the image upload request.

editor.upload.video.api동영상 업로드

Set video upload API (URL)

을 설정합니다. 해당

. Videos will be sent to the designated API (URL)

로 동영상을 전송합니다

.

editor.upload.video.param동영상 업로드 요청시 함께 전송 할 파라메터를 설정합니다

Set the parameter to be sent with the video upload request.

editor.upload.video.headers

Status
colourYellow
titleRELEASE 2.7.0 OR ABOVE
 Set the header to be sent with the video upload request.

editor.upload.file.api파일 업로드

Set file upload API (URL)

을 설정합니다. 해당

. Files will be sent to the designated API (URL)

로 파일을 전송합니다

.

editor.upload.file.param파일 업로드 요청시 함께 전송 할 파라메터를 설정합니다.
설정예시

Set the parameter to be sent with the file upload request.

editor.upload.file.headers

Status
colourYellow
titleRELEASE 2.7.0 OR ABOVE
 Set the header to be sent with the file upload request.

Configuration Example

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{  
	'editor.import.maxSize': 10485760,
	'editor.import.api': '/importDoc',
	'editor.import.param': {},
	'editor.upload.maxSize': 3145728,
	'editor.upload.image.api': '/uploadImage',
	'editor.upload.image.param': {},
	'editor.upload.video.api': '/uploadVideo',
	'editor.upload.video.param': {},
	'editor.upload.file.api': '/uploadFile',
	'editor.upload.file.param': {},
}