Slide 40
Slide 40 text
۩ମతʹͲ͏࡞Δ
40
7
_mtnet.uploadJSON = async (_params) => {
const headers = await _mtnet.setAuthHeaders();
const upload = new FormData();
upload.append("path", 'dummy-path');
upload.append('file', _params.data, _params.uploadFilename);
const uploadRes = await fetch( _mtnet.endpoint + 'assets/upload', {
headers,
method: 'POST',
body: upload,
})
.then( (res) => res.json())
.catch( (res) => {
confirm(“Error: ” + res.text());
console.log(res);
});
return uploadRes;
}
.PWBCMF5ZQFOFUΞΠςϜͷΞοϓϩʔυͷྫ
wྫ͑ɺΩϯτʔϯͰ
໊ཧͯ͠ɺඞཁͳσʔλ͚ͩΛ
+40/σʔλΛΞΠςϜͱͯ͠
Ξοϓϩʔυɺ
αΠτΛߋ৽Ͱ͖Δ
w+BWB4DSJQUͷίʔυ
.PWBCMF5ZQFOFUଆʹஔ͍ͯ
ʮΞϓϦͷઃఆ+BWB4DSJQU
$44ͰΧελϚΠζʯͰ
ಡΈࠐΉ $034ରࡦ