looking for a simple user upload image script

They have: 14 posts

Joined: Nov 2000

Hi, has anyone seen a simple script that would enable a user to upload a photo simply through their browser. And possibly have it placed in a specified page by use of a tag. If it is only to a specified file that would be ok as well as I could just reference it in the html. Thanks in advance. Let me Know

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

There are many file uploader scripts, and tutorials, on the web...

http://www.perlarchive.com
http://www.webreview.com

Both of those urls will give you many links that you will find helpful, as well as explain how the uploader works.

Cheers!

Suzanne

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Welcome to TWF!

If your adventurous, you can read about how to do it, and make your own (custom fit). Or if your lazy, you can download a free one..

http://hotscripts.com
http://resourceindex.com

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 161 posts

Joined: Dec 1999

You have to upload the image into a file -- you can't just insert JPEG or GIF or bitmap data into an HTML file midstream.

Next, to make sure you can do this easily, I'd suggest using the standard CGI.pm module. This will make your life very easy. And make sure you have a directory in which you can create files! And make sure your form has the proper method (POST) and the proper enctype ("multipart/form-data").

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

japhy-
there is a round about way to insert images into HTML...
you will use an upload script to get the image to a dir on the server. The upload script will then exec script2..

script2 will take a template html page or perhaps a live one, pattern match it, and insert img tags with the path to the just uploaded image.

Tah dah, you have just changed the image on my html page!

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 161 posts

Joined: Dec 1999

I was referring to inserting binary data into an HTML page and expecting it to appear as an image. There are a multitude of ways to link to an image, of course.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.