Hi,
I'm trying to set up a simple file upload page, using httpd and cgi-bin.
Basically, what I'm missing is a way to “grab” the variable name (for lack of a better term), of the uploaded file.
I'm using a bash based cgi script.
On the web page I have:
Code:
<FORM method="POST" enctype="multipart/form-data" action="/cgi-bin/upload.sh">
<input type="file" name="file_name" size="20">
The webpage does not error, but – I can see in the logs that I am not able to “grab” the file name in any way. I assumed that resulting file name/descriptor/value would have been “file_name”, but, I cannot do anything in the cgi-script by relating to “file_name” .
Any help is most appriciated.
Thank you .