teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

秘密情報

2020/02/13 06:19

投稿

FUJITOMO37
FUJITOMO37

スコア25

title CHANGED
File without changes
body CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
 
40
40
  function downloadFile(doc_id,file_id) {
41
- const url = "https://workflow.nextset.jp/optex/api/public/attach/download";
41
+ const url = "https://workflow.nextset.jp/[テナント名]/api/public/attach/download";
42
42
  const xml = new XMLHttpRequest();
43
43
  xml.open("POST", url, false);
44
44
  xml.setRequestHeader("content-type", "application/x-www-form-urlencoded;charset=UTF-8");

1

charset値がまぎらわしいので、shift-jis⇒utf-8に変更。

2020/02/13 06:19

投稿

FUJITOMO37
FUJITOMO37

スコア25

title CHANGED
File without changes
body CHANGED
@@ -41,7 +41,7 @@
41
41
  const url = "https://workflow.nextset.jp/optex/api/public/attach/download";
42
42
  const xml = new XMLHttpRequest();
43
43
  xml.open("POST", url, false);
44
- xml.setRequestHeader("content-type", "application/x-www-form-urlencoded;charset=shift-jis");
44
+ xml.setRequestHeader("content-type", "application/x-www-form-urlencoded;charset=UTF-8");
45
45
 
46
46
  var data = new Map();
47
47
  var access_token = getAccessToken();