Forum Moderators: mack

Message Too Old, No Replies

Uploading Files on my site. HELP

         

TSchumm

4:19 pm on Feb 2, 2006 (gmt 0)

10+ Year Member



I am very very new to web development and have a site where the content is a direct result from the visitors uploading pictures, video, music, and posting stories. right now, i have it set up where there is a link that directs the visitors to send an email to photos@mysite.com, videos@mysite.com, stories@mysite.com, etc. everytime they want to send in something. it's a real pain and i'm probably losing out on alot of good content because of it.

is there a way, with html, that i can have a template where they can just upload the files themselves and have it sent directly to me? i've seen it on numerous other sites and seems to be a really simple feature after it is set up. i feel it is pretty unprofessional to have my visitors email me something everytime they want to share some content, instead of doing a quick upload from my site. is there software that can help me do this? does anyone have something similar on their site or know how to do this?

help!

txbakers

6:20 pm on Feb 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi. It is a simple procedure on the HTML end, but not on the server end.

Look up input type="file" for information on how to implement it.

That little line allows theuser to browse their computer to find the upload.

HOWEVER, you need to write some code on the server to accept the file and do something with it.

TSchumm

8:58 pm on Feb 2, 2006 (gmt 0)

10+ Year Member



essentially i'm just looking for a way to have people send me uploaded files into my email box from the site. rather than having to go through the extra couple steps of going into their email and sending an email w/an attachment. is there an easy way to do this? how?

txbakers

10:05 pm on Feb 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is there an easy way to do this?

no.

the code on the server end needs a way to receive the file and do something with it.

It's not very complicated, and I think there are basic scripts you can use for it, depending on your server technology (cgi, php, asp, etc)

jgstyle

10:44 pm on Feb 2, 2006 (gmt 0)

10+ Year Member



Try looking for some premade scripts on the Hotscripts site to do this. Do a google search on "hotscripts" and you should get to their site from there.

Some of the scripts are free, others cost, but if it saves you time and effort it may be worth it to you to pony up.

longen

11:45 pm on Feb 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any risks if a users posts a .exe file, would it execute?

txbakers

5:13 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it could.

with those scripts you can allow only certain extensions.

lesterofpupets

1:47 pm on Feb 12, 2006 (gmt 0)

10+ Year Member



I use a php script, and use .htaccess to require passwords for the upload page. This uploads directly to a specified directory on your server. If you're running a windows server, there is a better chance that something could get executed.

Go to codewalkers, and in the search bar, select "Code" in the drop down, and enter "upload" in the search window. You may find one that will email you if you prefer that.

HTH