使用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里观察到)


要获取更多Jerry的原创文章,请关注公众号"汪子熙":


注销
1k 声望1.6k 粉丝

invalid