uploaded file name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john

    uploaded file name

    Hi

    Here's what I want:
    After uploading the file, I would like to preview the filename and the
    original path uploaded from the client side and not what is now
    uploaded to the server..

    for example, C:\mydocuments\ myfiles\myfile. doc
    How can I do this?
  • Ian.H

    #2
    Re: uploaded file name

    On Wed, 14 Jul 2004 22:06:51 -0700, john wrote:
    [color=blue]
    > Hi
    >
    > Here's what I want:
    > After uploading the file, I would like to preview the filename and the
    > original path uploaded from the client side and not what is now
    > uploaded to the server..
    >
    > for example, C:\mydocuments\ myfiles\myfile. doc
    > How can I do this?[/color]


    Filename yes, file _path_, not that I'm aware of.

    You can retrieve the 'myfile.doc' part using $_FILES['filename']['name']
    (assuming your form file field was named 'filename').

    The local filepath is immaterial IMO (whereas the filename is useful)..
    could you give a reason for wanting the local _path_ too? (I'm just
    curious is all =) ).



    Regards,

    Ian

    --
    Ian.H
    digiServ Network
    London, UK


    Comment

    Working...