The filename is test. pdf and the key name is "photo". Run the above file. It will send the test. pdf to the server created above. You can check at the server end after the request finishes. The server will parse the form-data request body and then save the file contents to a.. "/>