Review Foundry Review Engine User Manual

CONFIGURATION -- Upload Types

Adjust Text:  a a a a
« Table of Contents   |   Obtain Review Foundry »


CONFIGURATION

Upload Types

Each time a file is uploaded, a record is created in the Upload table which logs basic information about the file, such as its name, file size, MIME type, and information on where it is currently stored within the file system. The MIME type of the file is indicated by the value of the Upload.uploadtype_id column. This is a short string (representing a file extension, such as gif) which acts as a foreign key to the UploadType table. If you visit the Upload Types frame of the Configure control panel you will see a list of all the upload types, or the types of files which can be uploaded. As an example, here is some of the information presented for the gif upload type:

 Icon 

 Extension 

 Description 

 Max Filesize 

 Max Width 

 Max Height 

 Enabled 

gif

GIF Image

20000

620

280

Yes

This tells us that an uploaded GIF file cannot exceed 20000 bytes in size, that its width cannot exceed 620 pixels, nor its height exceed 280 pixels. If GIF uploads were forbidden altogether, the value for the UploadType.enabled column would be 'No' and that's what we would see in the last column under the heading Enabled. When the uploaded file type is not one of the image formats, the width and height columns are empty.

Upon installation, there are more than a dozen basic upload types represented in the UploadType table. You can add more at any time, or modify the record for any existing upload type. To add a new upload type, either click on the 'Add New Upload Type' link at the bottom of the Upload Types frame, or go directly to the Database control panel, load the UploadType table and add a new record.

When files are uploaded, the upload type icon will appear alongside the filename whenever it is displayed by the program. This makes is easier to determine at a glance as to the type of file we are dealing with (although the file extension also tells you the same thing, and can be less ambiguous).

« Table of Contents   |   Obtain Review Foundry »


Copyright © 2004 Random Mouse Software. All Rights Reserved.