Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- David Elliott
March 5, 2004, 3:07 pm
rate this thread
I have a need to send a file via a POST and am looking for some information.
As an example:
A user will be displayed an HTML page
-- The user will select a file.
-- The file will then be read.
-- A URL Post string will be created
-- The data from the file will be sent to the website for processing.
I am looking for any information on if this is possible, and how to do this
(website that explains,
pseudocode, working example, etc)
DavidElliott@BellSouth.net.nospam (Remove .nospam if responding directly)
Re: Posting A File via HTML
If your server offers PHP, a good solution would be the PEAR HTTP_Upload
class. An example by the author is here:
<http://vulcanonet.com/soft/index.php?pack=uploader . On that page you
can also download the class.
Details on handling the class etc. are best dealt with in a PHP
newsgroup, e.g. comp.lang.php or alt.php.