Upload with Firefox

Discussion in 'HTML' started by Lajos Kuljo, Feb 14, 2005.

  1. Lajos Kuljo

    Lajos Kuljo Guest

    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?
    Lajos Kuljo, Feb 14, 2005
    #1
    1. Advertising

  2. Lajos Kuljo

    Oli Filth Guest

    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
    Oli Filth, Feb 15, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,423
    Bruce Barker
    Aug 3, 2005
  2. Heather Fraser
    Replies:
    0
    Views:
    614
    Heather Fraser
    Jul 5, 2004
  3. Velvet

    Upload not working in FireFox

    Velvet, Apr 17, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    369
    Steven Cheng[MSFT]
    Apr 18, 2006
  4. Replies:
    1
    Views:
    916
    Gabriel Genellina
    Nov 25, 2006
  5. Prakash
    Replies:
    3
    Views:
    441
    Ray at
    Nov 12, 2003
Loading...

Share This Page