0
PhoneGap 응용 프로그램에서 Domino 서버로 파일을 게시해야합니다.Domino의 파일 업로드 제어
PhoneGap 파일 전송 예는 다음과 같습니다 // !! 변수 fileURI 내 장치의 텍스트 파일에 유효한 URI가 들어 가정
var win = function(r) {
console.log("Code = " + r.responseCode);
console.log("Response = " + r.response);
console.log("Sent = " + r.bytesSent);
}
var fail = function(error) {
alert("An error has occurred: Code = " = error.code);
}
var options = new FileUploadOptions();
options.fileKey="file";
options.fileName=fileURI.substr(fileURI.lastIndexOf('/')+1);
options.mimeType="text/plain";
var params = new Object();
params.value1 = "test";
params.value2 = "param";
options.params = params;
var ft = new FileTransfer();
ft.upload(fileURI, "http://some.server.com/upload.php", win, fail, options);
//This is a PHP example - Domino would be like
// ft.upload(fileURI, "http://some.server.com/database.nsf/attachmentForm? createDocument", win, fail, options);
사람이 게시되고있는 첨부 파일을 얻을 도미노에서 수행 될 필요가 무엇인지 알고 있나요?