zl程序教程

您现在的位置是:首页 >  其它

当前栏目

Inspect file content when uploading as attachment

File as when content attachment inspect
2023-09-14 09:02:57 时间

when we uploading text file as attachment, is it possible for us to view uploading file content in Chrome development tool?
Attachment uploading is implemented with Content-Disposition = attachment in Fiori application. Before processing this incident, Sara and I never knew there are still many other Content-Disposition type other than form-data, since form-data is widely used in web application.
Different content-disposition type has different semantic meaning and thus different implementation. For detail comparision, please refer to this link.

clipboard1

Back to our original question: suppose I would like to upload this text file as attachment:

clipboard2

When I upload it, in Chrome development tool it is not possible for me to see the file content:

clipboard3
clipboard4

It could only be achieved via Fiddle Web debugger:

clipboard5

When we try in Coporate wiki where the upload is implemented via form-data:

clipboard6

The result is the same: invisible in Chrome development tool:

clipboard7

But observable in Fiddle:

clipboard8
clipboard9

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