Guest User

Untitled

a guest
Oct 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <form action="upload.php" method="post" enctype="multipart/form-data">
  2. Select image to upload:
  3. <input type="file" name="fileToUpload" id="fileToUpload">
  4. <input type="submit" value="Upload Image" name="submit">
  5. </form>
  6.  
  7. files={'fileToUpload': open(uploading.jpg', 'rb)}
  8. p=requests.post(url, files=files)
Add Comment
Please, Sign In to add comment