Re: Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg- to upload image path

From: Date: Thu, 10 Feb 2005 16:13:23 +0000
Subject: Re: Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg- to upload image path
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-38548@lists.php.net to get a copy of this message
ioannes wrote:
I am trying to upload images - in fact an image path - from a PC. I use the <input > tag: <INPUT NAME="addpic" TYPE="file"> which nicely gives an input textfield and Browse button! This gives me, in the input box, eg: c:\pics\subdir\pic1.jpg
a web browser doesn't even give you this information!
The input tag does give the local path. [snip]
* I apologize on my last message, I didn't change the field to a reply-to and it was a Cc - though I think the mailing list was kind enough to only post it once * If by local, in your example, you mean it gives you "pic1.jpg" - then I will agree. No browser I've ever seen sends "C:\pics\subdir\pic1.jpg". It will *display* that to the user, but it doesn't submit the local path, it just uploads the file and gives the filename. Cheers, -- - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.

« previous php.db (#38548) next »