天天看點

SAP附件UI裡選擇的檔案是如何傳到ABAP伺服器的

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

前端取得user選中的file name:

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

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

LOOP所有form parts:

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

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

本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。

繼續閱讀