Web Hosting Talk







View Full Version : script to extract filename/extention


rrsnider
12-11-2001, 10:25 PM
Does anyone have or know of a script to extract the filename and file extention from a "file field" form object ? That is, when you select a file from the browse button like

C:Inetpub/wwwroot/vehicles/97gst5.jpg

the script simply returns 97gst5.jpg. I know it can probably be done easily with perl but I am not good with perl string functions.
If it can easily be done with ChiliASP that would be better yet.

thanks

allending
12-11-2001, 10:32 PM
Too bad you aren't using PHP
$userfile_name

bobcares
12-12-2001, 07:18 AM
Hi!
I guess you could for a script which does this in hotscripts.com.
Search for form processors.

Have a great day :)

regards
amar

bitserve
12-12-2001, 03:06 PM
Originally posted by rrsnider
the script simply returns 97gst5.jpg

What script? What scripting language is it in?