I have the below request in python
import requests, json, io cookie = {} payload = {\"Name\":\"abc\"} url = \"/test\" file = \"out/test.json\" fi = {\'file
You can also upload using HTML5. You can use this AJAX uploader.
The JS code is basically:
$scope.doPhotoUpload = function () { // .. var myUploader = new uploader(document.getElementById('file_upload_element_id'), options); myUploader.send(); // .. }
Which reads from an HTML input element