Online file checker?

  • Thread starter Thread starter skc
  • Start date Start date
S

skc

Using Fp2000 on Windows2000 with IIS5.0.

Here is what I want to do:

1. Browse to a file on my HDD from a web form (hit browse
button)
2. Select a file
3. File contains about 40,000 lines, but I am concerned
about the last line in the file. This contains a check
digits for the number of lines in the format:

"X1", 40000

so in this case the file has 40000 lines
4. Capture the size of the file in KB and the 40000 lines
and save this to an Access table
5. repeat the process for another file...etc...

Where do I start???

skc
 
-----Original Message-----
Using Fp2000 on Windows2000 with IIS5.0.

Here is what I want to do:

1. Browse to a file on my HDD from a web form (hit browse
button)
2. Select a file
3. File contains about 40,000 lines, but I am concerned
about the last line in the file. This contains a check
digits for the number of lines in the format:

"X1", 40000

so in this case the file has 40000 lines
4. Capture the size of the file in KB and the 40000 lines
and save this to an Access table
5. repeat the process for another file...etc...

Where do I start???

1. In FrontPage, create a form thta contains a File
Upload form field.
2. Right-click the form, select Form Properties, click
Send To Other, and select Custom ISAPI, NSAPI, CGI, Or
ASP Script.
3. Click the Options button and in the Action field,
specify the name of an ASP or ASP.NET page that
will process the submission.
4. Click OK and OK.
5. Find out what kind of file-upload control your provider
supports for ASP or ASP.NET pages. Microsoft doesn't
provide file-upload support for ASP, so your provider
will likely supply one of many third-parts ActiveX
controls for this. Microsoft *does* provide file-upload
support for ASP.NET, so if your server has the .NET
Framework installed (as is automatic with Windows
Server 2003) then you would probbly use the Microsoft
solution.
6. Write the necessary ASP or ASP.NET code to verify that
an uploaded file has arrived, and to either count
lines or get the claimed line count from the last line
in the file. In .NET, for example, the uploaded file
arrives as a stream and you would create a TextReader
to read it.
7. Get the file name and size from the upload control.
8. Update the database using ADO or, if you're using
ASP.NET, ADO.NET.

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Thanks for the reply,

I did not understand a word you have said. I will however
investigate ASP.NET for the file upload.

Skc
 
Back
Top