Hello,
Is there a way of uploading an image file using python ?. Im able to upload files from a simple html page consisting of the code below.But i would like to be able to do that from a python program. Can it be done using urllib2 module ?. Any example i can refer to ?
Please help. Thank You.
<form action="http://somesite.com/handler.php" method="post" enctype="multipart/form-data">
<table>
<tr><td>File:</td><td><input type="file" name="file" /></td></tr>
<tr><td><input type="submit" value="Upload" /></td></tr>
</table>
</form>