FormStates

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Enum 
          Member of  ScriptUtils Use FormStates object 

Description

More about state/result of a form process. See also ScriptUtils.ASPForm.Upload - Monitor and handle upload state/result

Values

fsCompleted = &H0 Form was successfully processed.
fsNotPost = &H1 Request method is NOT post
fsZeroLength = &H2 Zero length request (there are no data in a source form)
fsInProgress = &H3 Form is in a middle of process.
fsNOFRead = &H4 Required number of source fields/bytes was readed (form not completted, see ASPForm method).
fsNone = &H5 Initial form state
fsError = &HA10  
fsNoBoundary = &HB11  Boundary of multipart/form-data is not specified.
fsUnknownType = &HC12  Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)
fsSizeLimit = &HD13  Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)
fsTimeOut = &HE14  Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)
fsNoConnected = &HF15  Client was disconnected before upload was completted.
fsErrorBinaryRead = &H1016  Unexpected error from Request.BinaryRead method (ASP error).

Includes  
'FormStates - begin
Public Const fsCompleted = &H0 'Form was successfully processed.
Public Const fsNotPost = &H1 'Request method is NOT post
Public Const fsZeroLength = &H2 'Zero length request (there are no data in a source form)
Public Const fsInProgress = &H3 'Form is in a middle of process.
Public Const fsNOFRead = &H4 'Required number of source fields/bytes was readed (form not completted, see ASPForm method).
Public Const fsNone = &H5 'Initial form state
Public Const fsError = &HA
Public Const fsNoBoundary = &HB 'Boundary of multipart/form-data is not specified.
Public Const fsUnknownType = &HC 'Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)
Public Const fsSizeLimit = &HD 'Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)
Public Const fsTimeOut = &HE 'Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)
Public Const fsNoConnected = &HF 'Client was disconnected before upload was completted.
Public Const fsErrorBinaryRead = &H10 'Unexpected error from Request.BinaryRead method (ASP error).
'FormStates - end
'FormStates - begin
Public Const fsCompleted As Long = &H0 'Form was successfully processed.
Public Const fsNotPost As Long = &H1 'Request method is NOT post
Public Const fsZeroLength As Long = &H2 'Zero length request (there are no data in a source form)
Public Const fsInProgress As Long = &H3 'Form is in a middle of process.
Public Const fsNOFRead As Long = &H4 'Required number of source fields/bytes was readed (form not completted, see ASPForm method).
Public Const fsNone As Long = &H5 'Initial form state
Public Const fsError As Long = &HA
Public Const fsNoBoundary As Long = &HB 'Boundary of multipart/form-data is not specified.
Public Const fsUnknownType As Long = &HC 'Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)
Public Const fsSizeLimit As Long = &HD 'Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)
Public Const fsTimeOut As Long = &HE 'Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)
Public Const fsNoConnected As Long = &HF 'Client was disconnected before upload was completted.
Public Const fsErrorBinaryRead As Long = &H10 'Unexpected error from Request.BinaryRead method (ASP error).
'FormStates - end
Public Enum FormStates
  fsCompleted = &H0 'Form was successfully processed.
  fsNotPost = &H1 'Request method is NOT post
  fsZeroLength = &H2 'Zero length request (there are no data in a source form)
  fsInProgress = &H3 'Form is in a middle of process.
  fsNOFRead = &H4 'Required number of source fields/bytes was readed (form not completted, see ASPForm method).
  fsNone = &H5 'Initial form state
  fsError = &HA
  fsNoBoundary = &HB 'Boundary of multipart/form-data is not specified.
  fsUnknownType = &HC 'Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)
  fsSizeLimit = &HD 'Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)
  fsTimeOut = &HE 'Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)
  fsNoConnected = &HF 'Client was disconnected before upload was completted.
  fsErrorBinaryRead = &H10 'Unexpected error from Request.BinaryRead method (ASP error).
End Enum 'FormStates
//FormStates - begin
var fsCompleted = 0x0; //Form was successfully processed.
var fsNotPost = 0x1; //Request method is NOT post
var fsZeroLength = 0x2; //Zero length request (there are no data in a source form)
var fsInProgress = 0x3; //Form is in a middle of process.
var fsNOFRead = 0x4; //Required number of source fields/bytes was readed (form not completted, see ASPForm method).
var fsNone = 0x5; //Initial form state
var fsError = 0xA;
var fsNoBoundary = 0xB; //Boundary of multipart/form-data is not specified.
var fsUnknownType = 0xC; //Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)
var fsSizeLimit = 0xD; //Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)
var fsTimeOut = 0xE; //Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)
var fsNoConnected = 0xF; //Client was disconnected before upload was completted.
var fsErrorBinaryRead = 0x10; //Unexpected error from Request.BinaryRead method (ASP error).
//FormStates - end
// FormStates
typedef [helpcontext(0x2006D), helpstring("More about state/result of a form process. See also ScriptUtils.ASPForm.Upload - Monitor and handle upload state/result")]
enum FormStates{
	[helpcontext(0x2006D), helpstring("Form was successfully processed.")]
		fsCompleted = 0x0,
	[helpcontext(0x2006D), helpstring("Request method is NOT post")]
		fsNotPost = 0x1,
	[helpcontext(0x2006D), helpstring("Zero length request (there are no data in a source form)")]
		fsZeroLength = 0x2,
	[helpcontext(0x2006D), helpstring("Form is in a middle of process.")]
		fsInProgress = 0x3,
	[helpcontext(0x2006D), helpstring("Required number of source fields/bytes was readed (form not completted, see ASPForm method).")]
		fsNOFRead = 0x4,
	[helpcontext(0x2006D), helpstring("Initial form state")]
		fsNone = 0x5,
	[helpcontext(0x2006D)]
		fsError = 0xA,
	[helpcontext(0x2006D), helpstring("Boundary of multipart/form-data is not specified.")]
		fsNoBoundary = 0xB,
	[helpcontext(0x2006D), helpstring("Unknown source form (Content-type must be application/x-www-form-urlencoded or multipart/form-data)")]
		fsUnknownType = 0xC,
	[helpcontext(0x2006D), helpstring("Form size exceeds allowed limit (ScriptUtils.ASPForm.SizeLimit)")]
		fsSizeLimit = 0xD,
	[helpcontext(0x2006D), helpstring("Upload time exceeds allowed limit (ScriptUtils.ASPForm.ReadTimeout)")]
		fsTimeOut = 0xE,
	[helpcontext(0x2006D), helpstring("Client was disconnected before upload was completted.")]
		fsNoConnected = 0xF,
	[helpcontext(0x2006D), helpstring("Unexpected error from Request.BinaryRead method (ASP error).")]
		fsErrorBinaryRead = 0x10
} FormStates;

Used in

  Other links for FormStates class

ASP file upload and ScriptUtilities classes

ScriptUtils

     Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 2GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance.

     The software has also a free version of asp upload with progress, called Pure asp upload, written in plain VBS, without components (so you do not need to install anything on server).

     This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files, works with binary data, you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.


© 1996 – 2008 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.20.24