Re: how to trim file path from filename



On 31 mar, 15:49, andyau <pencilsandpixelst...@xxxxxxxxxxxxxx> wrote:
I am uploading a file to the server and at the same time I want to
place the file name in to a database.

But for the the file to be effective I need to trim the path from the
filename and leave just the filename.

Can anyone suggest how I do this?

It's all part of a google maps mash up.

The page can be found here.

http://www.streetartlocator.com/dev/add_location_3.php

Thanks in advance.

Andy
in what language are you doing the job on the server side ?
if you do that with php the file name is in $_FILES['file']
['name'] ... I think


.



Relevant Pages

  • Re: Divining the full pathname of a file, all logicals translated
    ... If the database contains filenames that were not parsed with no_conceal, ... then the online filename and the database filename need to be parsed with ... return the filename using the disk logical that the disk was mounted with. ... drive name needs to be retained also, unmasked from any logicals. ...
    (comp.os.vms)
  • Re: store files at my web host - how
    ... I'm doing something similar with product images, so I'll post a little of my ... Then I try to get the filename alone (maybe ... to a database. ... You can grab a bit of metadata as well from the PostedFile, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: tool for finding paths to files
    ... the path and filename of the file you selected in the dialog box. ... So in my PictureLoad sample, the call is behind the "Choose a Picture" ... this to include other file formats or ALL file formats. ... is a small Access database ...
    (microsoft.public.access.forms)
  • Re: Report
    ... If your database field is a text data type and contains the filename, ... Access report would work best since Word does not support the OLE data ...
    (microsoft.public.office.misc)
  • Re: Finding pattern more than once per record
    ... > We're doing variable data printing - where a customer supplies us with an image ... > they don't reference an image from the database until it's in the library, ... > I've been trying to come up with an awk solution to extract image names from the ... > better way to specify the match pattern for the first part of the filename? ...
    (comp.lang.awk)