Solved

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

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

Suggested Solutions

Title # Comments Views Activity
PHP Form Calculate Total Price 10 120
website rewamp 5 50
Replace value 2 27
SP converting date time to date and time separately 2 12
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
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…
The viewer will learn how to dynamically set the form action using jQuery.

713 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