Attachment assignment block里选择的文件是如何传到application server
生活随笔
收集整理的這篇文章主要介紹了
Attachment assignment block里选择的文件是如何传到application server
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Created by Jerry Wang, last modified on Dec 12, 2014
使用Chrome debug attachment upload page:從local laptop上選擇一個file之后,斷點觸發(fā):
前端取得user選中的file name:
點Attach button后,觸發(fā)Application server 的event handler:
從Chrome network tab能觀察到,UI向Application server發(fā)送了一個http post:
LOOP所有form parts:
從對應的form part里取出file name, file type:
以及實際的文件內(nèi)容(由于security原因,該form part的內(nèi)容無法在Chrome的network里觀察到)
總結
以上是生活随笔為你收集整理的Attachment assignment block里选择的文件是如何传到application server的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 雷军送了徕卡CEO一部小米13 Ultr
- 下一篇: 小米12T Pro将支持米级定位!国内用