this may not be an appropriate place to ask but does anybody have a
pre-made library or routine to download a file from a user?
i'm writing a file upload routine to be installed into my
cgi-executables folder temporarily for somebody in alaska to send me a
lot of scenery pictures from there (including one of a moose as tall as
a house in somebody's back yard). i already wrote the c routines to
interface with the web but don't know how to upload the actual file.
David Phillip Oster - 27 Mar 2007 16:41 GMT
> this may not be an appropriate place to ask but does anybody have a
> pre-made library or routine to download a file from a user?
[quoted text clipped - 4 lines]
> a house in somebody's back yard). i already wrote the c routines to
> interface with the web but don't know how to upload the actual file.
Not the right forum, but do a little Google research for <form>s that
have an appropriate pair of tags, one to implement a file selector
button and one to method=POST the file.
This page, for example:
http://www.tizag.com/phpT/fileupload.php
which says:
<form enctype="multipart/form-data" action="myuploadercgi" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
You can catch the file that the browser sends using any appropriate CGI,
not just PHP.
D. Kirkpatrick - 27 Mar 2007 19:53 GMT
> this may not be an appropriate place to ask but does anybody have a
> pre-made library or routine to download a file from a user?
[quoted text clipped - 4 lines]
> a house in somebody's back yard). i already wrote the c routines to
> interface with the web but don't know how to upload the actual file.
Try : http://www.yousendit.com/
Also: http://www.gigasize.com/