天天看點

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

使用Chrome debug attachment upload page:從local laptop上選擇一個file之後,斷點觸發:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

前端取得user選中的file name:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的
Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

點Attach button後,觸發Application server 的event handler:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的
Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的
Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

從Chrome network tab能觀察到,UI向Application server發送了一個http post:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

LOOP所有form parts:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

從對應的form part裡取出file name, file type:

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

以及實際的檔案内容(由于security原因,該form part的内容無法在Chrome的network裡觀察到)

Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的
Attachment assignment block裡選擇的檔案是如何傳到Netweaver伺服器的

繼續閱讀