Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

785 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