Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-22
2
Medium Priority
?
1,384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
efaisal earned 180 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 195 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

604 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