markdown 多部分/格式数据で送られてくるCSVがファイルとして认识されない

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 多部分/格式数据で送られてくるCSVがファイルとして认识されない相关的知识,希望对你有一定的参考价值。

postmanのchrome拡張版とネイティブアプリ版とで、前者はCSVファイルのアップロードに失敗、後者は成功した。  
前者のリクエストが下記
```
POST /ext/shipments HTTP/1.1
Host: localhost:3000
Content-Length: 1176
Authorization: Bearer hoge
Postman-Token: 98fd04e3-0c01-a3c7-3fc5-69aae7972c14
Cache-Control: no-cache
Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Content-Type: multipart/form-data
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: ja,en-US;q=0.9,en;q=0.8

------WebKitFormBoundary536Z2LTrTT37BbAf
Content-Disposition: form-data; name="file"; filename="all_fail_sample.csv"
Content-Type: text/csv

"DENFD","","","101","","","","","2600158664710","","","�N���E�h �Ԏq","","","09011112222","1140023","","�����s","�k�����6-1-11-502","","�N���E�h �Ԏq","","","09011112222","1140023","","","","","","20180302","52","","","","","�d���A�V�X�g���]��","�u���a�X�g��","BM0C38 �ް���ڰ","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","��:B 12 - 15 �\:200285�^�����F15866521","","4.97772E+12","","","","","","",""
"DENFD","","","101","","","","","2602159857726","","","�׳�� �ź","","","09011112222","1690051","","�����s","�V�h�搼����c1-13-8","�X�J�C�R�[�g�k�[�x��701����","�׳�� �ź","","","09011112222","1690051","","","","","","20180302","53","","","","","�①�Ɂi�P�O�O�k�����j","�n�C�A�[��","JRN85B W","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","��:C 15 - 18 �\:202982�^�ݒu�L","","","","","","","","",""

------WebKitFormBoundary536Z2LTrTT37BbAf
Content-Disposition: form-data; name=":"


------WebKitFormBoundary536Z2LTrTT37BbAf--
```

後者のリクエストが下記
```
POST /ext/shipments HTTP/1.1
Content-Type: multipart/form-data; boundary=--------------------------808523887586172791223758
Authorization: Bearer hoge
cache-control: no-cache
Postman-Token: 29b110ff-b67d-4d65-9604-50a1be8454db
User-Agent: PostmanRuntime/7.1.1
Accept: */*
Host: localhost:3000
cookie: PLAY2AUTH_SESS_ID=0aad828cbaa53e7a643a5e43b3e896c85fbec988IwpF-elZ5sZYNuKowHKlLlj.3c-lF2mKftohaOFHyHCYa5kAlE09vlZHLXBxkGOpKxP1nKTLONP2tnF7_8jZW23eitdU6lVjDGgqjZcxvnTtbpXSZg_R84b5RsT48lL3
accept-encoding: gzip, deflate
content-length: 1112
Connection: keep-alive

----------------------------808523887586172791223758
Content-Disposition: form-data; name="file"; filename="all_fail_sample.csv"
Content-Type: text/csv

"DENFD","","","101","","","","","2600158664710","","","�N���E�h �Ԏq","","","09011112222","1140023","","�����s","�k�����6-1-11-502","","�N���E�h �Ԏq","","","09011112222","1140023","","","","","","20180302","52","","","","","�d���A�V�X�g���]��","�u���a�X�g��","BM0C38 �ް���ڰ","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","��:B 12 - 15 �\:200285�^�����F15866521","","4.97772E+12","","","","","","",""
"DENFD","","","101","","","","","2602159857726","","","�׳�� �ź","","","09011112222","1690051","","�����s","�V�h�搼����c1-13-8","�X�J�C�R�[�g�k�[�x��701����","�׳�� �ź","","","09011112222","1690051","","","","","","20180302","53","","","","","�①�Ɂi�P�O�O�k�����j","�n�C�A�[��","JRN85B W","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","��:C 15 - 18 �\:202982�^�ݒu�L","","","","","","","","",""

----------------------------808523887586172791223758--
```

以上是关于markdown 多部分/格式数据で送られてくるCSVがファイルとして认识されない的主要内容,如果未能解决你的问题,请参考以下文章

css CSSアニメーション(フワッと横から入ってくる)

css 管理平台のサイドバーを上に持ってくるユーザーCSS

1801日語写作第16回:6月24日

第二十八课

text ローカルブランチがどのリモートトラキングブランチに关连付けられているか#memo

1801日語听解4第8回:4月28日