# Appendix D: Browser Errors

This Appendix lists and describes the web page errors that UPLOADit will possibly send to your web browser when you try to upload files to it. Each of the errors below are categorized by the main error message. The description then contains the secondary (longer) error message followed by possible reasons for receiving the error.

## Blocked IP Address

"This server is currently blocking your IP address."

You would get this error if your IP address was blocked by the realm you are trying to upload to, or by the default realm. Check your UPLOADit_Realm.xml file to see if your IP address is being blocked with the <denyip> and/or <defaultdenyip> tags. You may also need to refer to Chapter 7, "IP Address Checking".

## Could Not Get File Name

"The Server had a problem getting the file name for the file you are trying to upload."

This error would come up if for some reason the plug-in could not find or decode the file name of the file you are trying to upload. Most likely you will never see this error.

## Database/Script Problem

"There was a problem with the database or script for this realm: XXXX"

This error will come up if UPLOADit has a problem locating the database and script defined for the realm, or running that script. The "XXXX" above will be replaced with the specific error the plug-in had.

## Disk Error

"The Server could not write data to the disk."

This error would come up if the plug-in had a problem writing data to the hard drive. It may mean that the hard drive is full.

## Error Receiving Data

"The server had an error receiving data or came to an unexpected end of the data stream. Please try again."

If the plug-in has a problem reading the data from the web browser, or if the web browser does not format the data correctly when sending to the plug-in, you will get this error. Of course, if the web browser was closed or crashed when trying to upload data to the plug-in, then the plug-in wouldn't be able to display this error to the user.

## File Error

"The Server could not create a file on the disk for the incoming file."

You might get this error if the hard drive was full or write protected.

## File Error

"The Server could not create an FSSpec for the incoming file."

You may get this error on the Mac if the plug-in cannot create a file with the correct file name.

## File Error

"The Server could not open the file for writing for the incoming file."

You may get this error if the hard drive is full or write protected.

## File is too Large

"This Server does not accept files over XXXX bytes."

You would get this error if you are trying to upload a file that is larger than the Maximum File Size setting allows. Check your UPLOADit_Realms.xml file to see if the Maximum File Size setting you have defined for your realm is smaller than the file you are trying to upload.

## File Stream Error

"The Server could not create a file stream for the incoming file."

You may get this error if the hard drive is full or write protected.

## Invalid Content-Type

"This server only accepts 'multipart/form-data' Content-Types."

The plug-in can only accept form data in one way. If you get this error, check to make sure the "enctype" attribute of your <form> tag is set to "multipart/form-data".

## Malformed Authorization Header

"The Authorization Header was not correct."

You would get this error if your web browser did not send the username/password authentication header correctly. Most likely, this will never happen.

## Malformed Headers

"The HTTP Headers were not correct - Content-Type Missing Multipart Boundary."

The plug-in can only accept form data in one way. If you get this error, check to make sure the "enctype" attribute of your <form> tag is set to "multipart/form-data".

## Malformed Headers

"The HTTP Headers were not correct - Missing Content-Type."

You would get this error if your web browser did not properly format the HTTP headers. Most likely this will never happen.

## Malformed Method

"The HTTP Method was either missing or malformed."

You would get this error if your web browser did not correctly format the HTTP Headers. Most likely this will never happen.

## Malformed Request/Realm

"The HTTP Request/Realm was either missing or malformed."

You would get this error if your web browser did not format the HTTP headers correctly. Most likely, this will never happen.

## Memory Error

"The Server could not create a memory buffer for the incoming file."

You may get this error if the plug-in is out of memory. Most likely, this will never happen.

## Memory Error

"The server had a memory error while trying to receive data. Please try again."

You may get this error if the plug-in is out of memory. Most likely, this will never happen.

## Realm Not Found

"Realm Not Found: XXXX"

You would get this error if the realm you defined in the "action" attribute of your <form> tag was not valid or misspelled. However, if the plug-in cannot find the realm you define, it falls back to the default realm, so you may never see this error.

## Result URL Error

"The Server was not given a Result URL to forward you to after you submitted the form. Please contact the system administrator."

You would get this error if the plug-in did not have a Result URL to redirect the web browser to after a user uploads a file. Check to make sure you have defined the Result URL either in the UPLOADit_Realms.xml file (using a <resulturl> tag), the web form (using a form element with the name "UPLOADit_Result_URL"), or in your scripts (using "Upld-SetResultURL").

## Too Many Files

"This Server does not accept more than XXXX files."

You would get this error if your realm has a maximum number of files defined and you are trying to upload more files than are allowed.

## Unauthorized

"The password you supplied was not correct."

If you have defined a password for your realm, you would get this error if you typed in the wrong password from the web browser and then canceled the attempt to re-enter your password.

## Unauthorized

"You need to specify a password in order to upload files to this server."

You would get this error if you have a password defined for your realm, but cancel the username password dialog your web browser displays. Usually, the web browser does not display these errors and simply prompts you for your username and password.

## Unknown Error

"The server had an unknown error while trying to receive data. Please try again."

This is sort of a catch all error. Hopefully, you will never see this error.

## Unsupported HTTP Version

"This server only accepts HTTP/1.0 and HTTP/1.1 requests."

You would get this error if your web browser is not compliant with HTTP/1.0 or HTTP/1.1. Most likely, this will never happen.

## Unsupported Method

"This server only accepts the POST Method."

You would get this error if you tried to browse directly to the plug-in with your web browser. Since UPLOADit does not have the capability to serve web pages, and only accepts form uploads, this error would be displayed.