파일 업로드 전 이벤트이다.
Parameters | Type | Description |
---|---|---|
objInst | INSTANCE | 컴포넌트 인스턴스 |
nFileIndex | short | 파일 인덱스 |
strFileName | STRING | 파일 이름 |
objXmlHttpRequest | INSTANCE | 파일 업로드시 사용되는 AJAX 통신을 위한 XMLHttpRequest 오브젝트 |
Type | Description |
---|---|
void |
/**
* 파일 업로드전 이벤트
* @param objInst 파일 업로드 컴포넌트 인스턴스
* @param nFileIndex 파일 인덱스(Zero-Based)
* @param strFileName 파일 이름
* @param objXmlHttpRequest 파일 업로드시 AJAX 통신을 위한 XMLHttpRequest 오브젝트
*/
function fileup_on_beforefileupload(objInst, nFileIndex, strFileName, objXmlHttpRequest)
{
// 커스텀 헤더 설정
objXmlHttpRequest.setRequestHeader("Custom-Header", "MyCustomValue");
}