L
Lajos Kuljo
Hi,
I have a little application using lamp (Debian), which uploads files to
the server:
....
echo "<form name='upload' enctype='multipart/form-data'
action='photo_document.php' method='post'>";
echo "<br>File to upload: <input type='file' name='file'
size='100'><br><br>";
....
If I run this script in Firefox 1.0 or in Mozilla 1.7.3-5,
$_POST['file'] gives me only the filename without the path, which is
imho not compatible with the manuals. However in Konqueror 3.3.2 it
works as it should, $_POST['file'] gives the full-path. Earlier versions
of Firefox/Firebird worked OK (like Konqueror does).
I just can't figure out, why it happens, and first of all, how can I
repair this situation.
Can somebody give me a hint?
I have a little application using lamp (Debian), which uploads files to
the server:
....
echo "<form name='upload' enctype='multipart/form-data'
action='photo_document.php' method='post'>";
echo "<br>File to upload: <input type='file' name='file'
size='100'><br><br>";
....
If I run this script in Firefox 1.0 or in Mozilla 1.7.3-5,
$_POST['file'] gives me only the filename without the path, which is
imho not compatible with the manuals. However in Konqueror 3.3.2 it
works as it should, $_POST['file'] gives the full-path. Earlier versions
of Firefox/Firebird worked OK (like Konqueror does).
I just can't figure out, why it happens, and first of all, how can I
repair this situation.
Can somebody give me a hint?