Solved

How to call "File Open Dialog Window" from HTML or PHP ?

Posted on 2004-04-22
2
1,355 Views
Last Modified: 2012-06-21

Hi ..
How to call "File Open dialog window" from HTML or PHP to select particular type of files ?
(I want the user to upload Picture files, by selecting the filename)

Regards,
Mohamed RIAZ.
0
Comment
Question by:ibriaz
2 Comments
 

Accepted Solution

by:
efaisal earned 60 total points
ID: 10886571
Create an HTML form with enctype attribute, put input element with file type. Below is an example:
<form enctype="multipart/form-data" action="yourscript.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
<input type="file" name="attach" size="35">
<input type="submit" name="submit" value="Submit">
</form>
0
 
LVL 6

Assisted Solution

by:Lord_McFly
Lord_McFly earned 65 total points
ID: 10886858
You will also need code to perform the upload, just having the <input type="file"> won't allow you to upload it to your server.

If you don't have any code your provider might already allow uploading via 3rd party component.

I also came across this page - don't know if it is of use as I'm not a PHP person.

http://www.io.com/~terrence/php/upload/upload.php
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now