Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Upload with Firefox

Reply
Thread Tools

Upload with Firefox

 
 
Lajos Kuljo
Guest
Posts: n/a
 
      02-14-2005
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:&nbsp;<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?
 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      02-15-2005
Lajos Kuljo wrote:
> 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:&nbsp;<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?


If it's working correctly (I'm assuming we're talking about PHP here),
$_POST["file"] shouldn't exist. File details will be in $_FILES["file"].

--
Oli
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload from client application (non-form based upload) stuart@microsoft.com Python 1 11-25-2006 12:14 AM
Upload not working in FireFox Velvet ASP .Net 2 04-18-2006 06:01 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
How to detect sizeof upload in order to show status of browser file upload? Heather Fraser Java 0 07-05-2004 12:35 AM
Upload Excel with Macros using HTML File Upload Prakash ASP General 3 11-12-2003 04:26 AM



Advertisments