且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Inspect file content when uploading as attachment

更新时间:2022-09-13 23:37:12

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.


Inspect file content when uploading as attachment

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


Inspect file content when uploading as attachment

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

Inspect file content when uploading as attachment

It could only be achieved via Fiddle Web debugger:


Inspect file content when uploading as attachment

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


Inspect file content when uploading as attachment

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


Inspect file content when uploading as attachment

But observable in Fiddle:

Inspect file content when uploading as attachment