파일업로더 » Api

getfilepostdataobjectbyname

Description

파일 이름을 기준으로 파일을 업로드하기 위해 호출시 송신될 POST 데이터를 포함하고 있는 자바스크립트 오브젝트 리턴한다.

Parameters

Parameters Type Description
strFileName short 업로드 대상 파일 이름

Return Value

Type Description
class POST 데이터를 포함하고 있는 자바스크립트 오브젝트 또는 null

Remark

setfilepostdata, setfilepostvalue 함수를 통해서 설정된 값이 없을 경우에는 null 값이 반환된다.

Example

function btn_setfilepostdata_on_mouseup(objInst) { var strPostDataKey, strPostDataValue, objPostData; uploader_basic.setfilepostdataobjectbyname("UploadFile.dat", { "POST_DATA_KEY_1": "POST_DATA_VALUE_1", "POST_DATA_KEY_2": "POST_DATA_VALUE_2" }); objPostData = uploader_basic.getfilepostdataobjectbyname("UploadFile.dat"); if(objPostData != null) { for(strPostDataKey in objPostData) { factory.consoleprint(strPostDataKey + " = " + objPostData[strPostDataKey]); } } }

See Also

getfilepostdataobject
getfilepostdatavalue
getfilepostdatavaluebyname

Viewer Ver.

9.1.1.1

Update Date

20180711