https://a.yamagata-u.ac.jp/amenity/Laboratory/C1/YomerImgUpload.aspx?id=test"),
/Public/52210/camera_src.txt
/Public/52210/
D:\share6\www\Public\52210\camera_src.txt
txt
camera_src
・ソ
function captureSuccess(mediaFiles) {
var i, len;
for (i = 0, len = mediaFiles.length; i < len; i += 1) {
uploadFile(mediaFiles[i]);
}
}
function captureError(error) {
var msg = '繧ュ繝」繝励メ繝」繝シ荳ュ縺ォ繧ィ繝ゥ繝シ縺檎匱逕溘@縺セ縺励◆: ' + error.code;
navigator.notification.alert(msg, null, '繧ィ繝ゥ繝シ');
}
function captureImage() {
//navigator.device.capture.captureImage(captureSuccess, captureError, {limit: 1});
navigator.camera.getPicture(captureSuccess, captureError, {limit: 1});
}
function uploadFile(mediaFile) {
var ft = new FileTransfer(),
path = mediaFile.fullPath,
name = mediaFile.name;
var options = new FileUploadOptions();
options.fileKey="sendfile";
options.fileName="sendfile";
options.mimeType="multipart/form-data";
ft.upload(path,
encodeURI("https://a.yamagata-u.ac.jp/amenity/Laboratory/C1/YomerImgUpload.aspx?id=test"),
function(result) {
console.log('繧「繝・・繝ュ繝シ繝画・蜉・ ' + result.responseCode);
console.log(result.bytesSent + ' 繝舌う繝磯∽ソ。');
document.getElementById("test").innerHTML = "繧「繝・・繝ュ繝シ繝画・蜉・;
},
function(error) {
console.log('繝輔ぃ繧、繝ォ縺ョ繧「繝・・繝ュ繝シ繝峨↓螟ア謨・' + path + ': ' + error.code);
document.getElementById("test").innerHTML = "繧「繝・・繝ュ繝シ繝牙、ア謨・;
},
options);
}
縺薙%縺ョ譁・ュ励′縺九o繧翫∪縺・/p>
utf-8]
[shift_jis]
🎄🎂🌃🕯🎉
Copyright ©1996-
2024 Databese Amenity Laboratory of
Virtual Research Institute,
Yamagata University All Rights Reserved.