Re: preview function with upload

From: Date: Fri, 11 May 2001 15:36:18 +0000
Subject: Re: preview function with upload
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-52472@lists.php.net to get a copy of this message
Do you capture the actual Client side Machine path before they hit the submit button or after? If before, I'm guessing you use javascript. If after, I have no guess. I didn't think that information was passed with the POST. kind regards, bill hollett Jason Lotito wrote: > > -----Original Message----- > > From: Mark Lo (3) [mailto:mark@3dsources.com] > > Sent: Friday, May 11, 2001 4:39 AM > > To: ListPHP Mailing > > Subject: [PHP] preview function with upload > > > > > > Hi, > > > > Does anyone know how to implement a preview function. > > That preview function is work after selecting the specific > > picture to upload in php upload function, when people click > > the preview function, the the selected upload product will > > show up on the screen. Hope, I am clear enough. > > > > Thank you > > > > Mark > > > > Yes. What you do after they have Browsed (using the appropriate form > functions), you simply capture the actual Client side Machine path of > the image they want to upload, and set that as the Img tags SRC value. > For example: > > <img src="C:\Documents and Settings\Administrator.GENRIC\My Documents\My > Pictures\Sample.jpg"> > > This will display the image to the person. While I have not tested it > out on various browsers, I know it works in IE, and don't see any reason > why it wouldn't work on other browsers. After this, they simply click > agree, and the normal file uploading procedure goes from there. > > Jason Lotito > www.NewbieNetwork.net > VI VI VI : Editor of the Beast > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#52472) next »