Where can I find a script for my web page for visitors to upload files?
Hello, I’m looking for a script or a plugin to include in my web page that would allow my visitors to upload their images , contact info and a message.
The files would probably go to a folder on my site’s server, and I’d get an email with the contact info, etc. My site is running on a Linux server.
Of course I’d love freeware, but I wouldn’t mind paying for a really good program.
Thanks.
Loads of free scripts:
PHP
http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading/
CGI:
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/File_Management/File_Uploading/
Pick a free one and most of these require little modifying and they all tell you how to configure them for your site.
Depending on what language you scripting in there are plenty of free sources on the internet.. or just write one yourself..
i personally use ASP.NET and script in C#
and upload into a database.
something like this
// or if you use one of the file browse modules set the
//directory to that
//this is for jpg pictures
DirectoryInfo d = new DirectoryInfo(Server.MapPath("~/Upload"));
foreach (FileInfo f in d.GetFiles("*.jpg"))
{
//ServerPath is where you want to save it..
// true indicates whether to overwrite or not..
f.CopyTo(ServerPath, true);
}
play with it and you’ll find what you need..
attach this to a button action or something..
PHP:
this site might help
http://www.tizag.com/phpT/fileupload.php