Uplading And Validating Files From A Browser To A Server Overview

Most web browsers can submit a file to be uploaded, but what the web server does with
the file is an entirely different matter (read hard to process), particularly when
image file properties (e.g., image type, size, width, comments, etc.) are involved. Handling
other file types (e.g., MS Access, Excel, Word, HTML, TXT, PDF, ZIP, etc.) have their own internal
structures whose file handling is definitely not for the faint of heart.
The FutureWare FileUpload Component solves all of these problems. It can be used wherever
a file needs to be uploaded, such as:
- Newspapers, for on-line advertising submittals
- Car dealers, for submitting car images along with price, model, etc.
- Road warriors, for expense reports, proposals, drafts, etc.
The FutureWare Web Library's FileUpload component is a
server-side object that accepts a file upload from a web browser
for selected file types, and then saving them to the server's file
system. For uploaded image files (i.e., BMP, JPG, GIF and PNG) the object
can abstract certain image properties (e.g., height and width in pixels)
for subsequent processing. For JPG files, the object can additionally
abstract the COMMENT and the 16 application-specific descriptions (i.e.,
the APPnn markers) that can be imbedded within the binary image stream.
The object does not allow any modification to any uploaded file.
The FileUpload object's operating environment is any Windows NT/2K
server. It is included in this FutureWare product distribution as
a class object for Microsoft's Active Server Pages that is added
as a class to the server's Registry as an installed DLL, and is
being used successfully with Microsoft's Internet Information Server,
O'Reilly's WebSitePro server, and Omnicron Technologies' OHTTPD server,
and can be used with Chili!Soft's ASP products that operate under
Windows NT/2K Servers.
It is also available as a Delphi DCU (included in this FutureWare
product distribution) that can be included in any project that uses
the TWebBroker object, by including the object's DCU in the invoking
Object Pascal source file
In addition to web browser uploads of image files, it can also handle
Microsoft's Word and Excel documents, text and HTML files.