Inspect file content when uploading as attachment

77 阅读1分钟

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.

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

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

It could only be achieved via Fiddle Web debugger:

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

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

But observable in Fiddle:

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