Solved

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

Posted on 2004-04-22
2
1,350 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Read about why website design really matters in today's demanding market.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

706 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

16 Experts available now in Live!

Get 1:1 Help Now