File upload from browser
Posted: Tue Sep 14, 2004 1:08 am
I have a function that I need in newlisp. And I am at a loss :(
given the following form action:
<form action="/upload.cgi" enctype="multipart/form-data" method=post>
<input type=file name=stonehenge>
<input type=submit value=Upload>
</form>
Using upload.exe (dos-cgi) or upload.php see below
the specified file is uploaded and put into an upload directory on the server.
I looked at (put-url) but I dont see a connection :(
I need to do this with a method=post using the method=put from the put-url example always returns REQUEST_METHOD=GET never PUT ?
FYI: The PHP function that provided the function I am looking for is:
move_uploaded_file ( string filename, string destination)
Push the "(" back to the front where it belongs and get rid of the stupid useless coma and it would be perferct :)
I keep hopeing that I have overlooked somthing symple here ....
given the following form action:
<form action="/upload.cgi" enctype="multipart/form-data" method=post>
<input type=file name=stonehenge>
<input type=submit value=Upload>
</form>
Using upload.exe (dos-cgi) or upload.php see below
the specified file is uploaded and put into an upload directory on the server.
I looked at (put-url) but I dont see a connection :(
I need to do this with a method=post using the method=put from the put-url example always returns REQUEST_METHOD=GET never PUT ?
FYI: The PHP function that provided the function I am looking for is:
move_uploaded_file ( string filename, string destination)
Push the "(" back to the front where it belongs and get rid of the stupid useless coma and it would be perferct :)
I keep hopeing that I have overlooked somthing symple here ....