Discussion Locked

Programming in FrontPage

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to create a webpage on my website where a user can very easily upload a file to my site into a particular directory that I create. It would be nice if they could browse their computer to select the file they want to upload. After they upload the file it should give them feedback that the file was uploaded and then send me an email so I know that they have uploaded a file. I am using Frontpage 2000 and my site has the frontpage extensions. Any help would be appreaciated.

8 replies

by fgarber

My answer is too long for the space allowed. If you will send me your email address I will gladly send you the code to do what you want.

by fgarber

I sent the code but my machine is acting up. If you don't get it let me know and I will try again. By the way you don't need frontpage. I started out that way and soon found it was for beginners.

by agibbs

It kindof depends on what your web host supports. If you have any familiarity with ASP, and your host supports it, I would highly recommend using SA-FileUp -- it is designed to do exactly that. If you don't have SA-FileUp & you're working on an NTweb server your only other choice is using the built-in HTTP posting acceptor that comes with IIS, and it's tough to get to work right. Remember, too, that allowing users to UPLOAD files to your web server means they have WRITE access to your web server, which means, if you're not careful setting permissions, ANYONE would have the ability to modify your web pages.

Here's some MS KB articles on the subject:

Q184352
Q189651
Q217425

--Aaron

by gbworld

The type of upload you are talking about is fairly easy, if your ISP has SAFileUp (or something similar) in place.

Part 1: Searching the drive. Once you set the input type to file, IE, at least, will give a common dialog to search the drive. If you absolutely need this in NetScape also, you will have to use Java or something similar.

Part 2: Upload. Many ISPs use SAFileUp (www.softwareartisans.com), which is certainly the easiest as Software Artisans has good documentation on their site. You can also find plenty of examples on the various ASP sites. Another option is the MS upload component, which first shipped with SiteServer Express (with IIS 4). It is harder to program against, as it does not allow you much control over where the file goes.

Part 3: Mail. This can either be done with CDO (search MSDN for coding methodology - or check out http://www.aspexpress.com/cdo2.asp for a small sample), although many ISPs use ASPMail (www.serverobjects.com), which is a bit nicer as itdoes not have to be in process.

No matter how you do this, you will have to code your own application. Note that the above suggestions do not work if your ISP uses Linux or Unix with FrontPage extensions. If so, you will have to utilize your CGI bin and put the upload programs there. There are probably free CGI scripts for this on the web.

Before going any deeper, I need to know some specifics about your ISP (you can email it, if you wish). I have some commented code for SAFileUp and ASPMail, but that will only help if these are available.

Gregory A. Beamer
MVP (FrontPage); MCP: +I, SE, SD, DBA

This discussion is closed to new replies.