0
내 파일 업로드에 대한 Uploadify을 사용하고
에 Uploadify와 fileObj 데이터를 전달하는 방법 : 위의 코드에서는 PHP
$('#file_upload').uploadify({
'scriptData' : {'creationDate':'test1','modificationDate':'test2'},
'onSelect' : function(event,ID,fileObj) {
console.log(fileObj.creationDate.time);
//alert('The file ' + fileObj.name + ' was added to the queue.');
}
});
를, 파일의에서 CreationDate를 표시 할 수 있습니다 내 onSelect를 이벤트는 내가 fileObj 기록대로 .creationDate.time
그러나 업로드 프로세스를 시작할 때이 값을 백엔드에 전달하고 싶습니다. scriptData 옵션이 있지만이 경우 fileObj가 없으므로 creationDate를 전달하는 방법을 모르겠습니다.
누군가 파일을 업로드하는 동시에 creationDate를 내 백엔드 스크립트에 전달할 수있는 사람이 누구인지 알고 있습니까? 당신의 onSelect를 핸들러에서이 퍼팅