html - multipart/form-data not sending binary data in header -


i wondering why code not sending file's data in http request header.

<!doctype html> <html>   <head>     <title>test</title>   </head>   <body>     <form enctype="multipart/form-data" action="test.html" method="post">       <input type="file" name="photo">       <button type="submit">submit</button>     </form>   </body> </html> 

it not pointing @ server side code knowledge shouldn't affect browser generating http request. looking @ actual http request shows getting filename not actual data. link below shows request payload in chrome.

request payload

it sending file data. chrome dev tools doesn't show it.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -