I have a HTML form put in a CGI file in C with fprintf statements like this:
<form action="cgi-bin/upload.cgi" method="post" enctype="multipart/form-data">
<p>Photo to Upload: <input type="file" name="photo" /></p>
<p>Your Email Address: <input type="text" name="email_address" /></p>
<p><input type="submit" name="Submit" value="Submit Form" /></p>
</form>
I was wondering if it's possible to grab the file input (the values requested from the form with a multipart/form-data body), convert it to C code (process the values by obtaining the url data), and upload the file from there? BTW, I'm not allowed to use PHP as the machine I'm currently working with has very limited space.