Forum Moderators: phranque

Message Too Old, No Replies

'file browse feature'?

         

RAPwebCSS

1:38 am on Dec 16, 2007 (gmt 0)

10+ Year Member



Don't really know which forum to ask this in (don't even know right words to use) ... but thought I'd start here. A pointer to right forum (or an answer) would be great.

Have an unique website that presents info and has a form for users to ask questions (it's NOT a retail site). Sometimes users have a picture to accompany their question. Would like to present them with a 'browse' function which they can use to point to (then maybe upload) the picture file on/from their computer - then website would attach the image to the email generated by the form.

I saw one reference to using some kind of a PHP program ... can anyone pointer me to one (a free one would obviously be preferable - but not absolutely necessary)? (Maybe my hosting company - which uses APACHE I think - provides a copy.)

coopster

9:26 pm on Dec 16, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The HTML <input type="file"> element allows a user to browse for a file for upload. There are many different scripts out there that allow you to upload and manage images/photos as well as other files. A quick search over these forums and the internet will turn up tons of options. Be careful in your analysis as you are obviously going to allow users to upload content to your site that may or may not be a photo (think malicious code!).

RAPwebCSS

3:37 am on Dec 17, 2007 (gmt 0)

10+ Year Member



Thank you coopster ... didn't realize it might be that straight forward. The 'uploaded' file will be attached to an email and I'll then have a chance to verify it - hopefully this will allow me to 'throw out' questionable ones.
(Not as much work as you might think because we're only talking about 1-2 emails per month)