Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 14th, 2004, 02:45 PM
geoffspruce geoffspruce is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 10 geoffspruce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Upload File Preview

This is my first posting, I hope someone can help.

I have an upload photo facility on my school site and it works fine, however, some of the teachers want to preview the picture, to make sure they are uploading the right one.

Once they have browsed for it, they want to be able to preview it. I've seen this done in Visual Basic on another site. They had a Preview Button as well as an Upload button.

If you clicked the preview button it opened a new window and showed the picture.

I know that I can find the name of the file with userfile['name'] but that doesn't give me the full path to the file they are getting from their machine (ie: C:mydocumentspic.jpg) so that I can simply open a new window showing their Local file, before uploading.

Any help would be appreciated.

Reply With Quote
  #2  
Old May 14th, 2004, 05:33 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Upload File Preview

if you're referring to after the upload form has been submitted, then you can use $_FILES['userfile']['tmp_name'] to display a preview, as that's where it is temporarily stored on the server.

if you want them to preview it prior to submission, then you should be able to use javascript to grab the value of the file/browse field.

kind of seems like an odd request IMO, as they should be able to preview the image while they're browsing for it (prior to actually selecting it)

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Upload File Preview


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT