我上傳了一個文件,使用<input type="file"/>
,我檢查了http request
使用chrome devtools。文件內容如何傳輸文件上傳
我可以看到文件的名稱和大小,但不能看到文件的內容。
如何傳輸文件內容?
是不是http
?
我上傳了一個文件,使用<input type="file"/>
,我檢查了http request
使用chrome devtools。文件內容如何傳輸文件上傳
我可以看到文件的名稱和大小,但不能看到文件的內容。
如何傳輸文件內容?
是不是http
?
The algorithm is described in the HTML 5 spec。
簡而言之,HTTP請求主體將包含由邊界標記和相關元數據分隔的文件的編碼內容。
Chrome的Net標籤doesn't display the file content for performance reasons。
很好的答案。你知道有什麼工具可以用來查看有效負載(Wireshark除外) – rakeee
「我檢查了http請求」 - 如何? – Quentin
@Quentin更新了問題。 – rakeee