Phew... that was an awful lot of code to get through. Obviously, we haven't covered every line, but hopefully by now you should get the idea. The clsFormField object is basically used to store information about that field. A standard field will simply have it's name and value recorded. Meanwhile, a file also has a FileSize, ContentType and FileName property. Once parsed, our ASP script can then access all this information, and use the cFormField object's SaveFile method to save each file to the server's hard disk. This will be demonstrated on the next page.
First, however, we need to compile our component to a DLL file. To do this,
go to File | Make ASPUploadComponent.dll
. Before it can be used
in your ASP script, however, IUSR_COMPUTERNAME
needs
to be given permission to access the file (and lock it!). To do this, display
the file properties from explorer, and give IUSR_COMPUTERNAME
read/execute permissions. Now, we are ready to create our other asp page.
Comments