Posted: July 29, 2010 at 1:40 AM by jbuda
Tags: Railo, Flex, Actionscript, Projects, Coldfusion
For full details on this Coldfusion/Flex File Management application please find the relevant information other related entries at the bottom of this post.
To use FiLEX you will need to have Coldfusion 8/9 or Railo 3.1 with Flash Remoting enabled.
After extracting the download, you will have the following files :
- Application.cfc
- assets (dir)
- file.cfm
- FiLEX.ini
- FiLEX.swf
- services (dir)
- upload.cfm
These files will then need to go to different locations.
Application.cfc : into the root of the website. However, if there is already an Application file in the root, then the contents of the FiLEX application will need to be moved into the current Application file.
Assets Directory : into the root of the website that FiLEX will be used in. This contains a css folder that contains a stylesheet that will enable the styling of FiLEX. Also, a files directory that is required for the location of any files uploaded through the application.
File.cfm and Upload.cfm : can be put anywhere, but the FiLEX.ini will need to reflect the locations of these files. This will be covered later.
FiLEX.ini : into the root of the website. However, this can be changed within the Application.cfc to show the location of the ini file for the application.
FiLEX.swf : can be put anywhere but the relevant webpage will need to use the correct path for the source.
Services Directory : this contains the ColdFusion components that will be used for Flash Remoting for directory and file manipulation.
The FiLEX.ini file specifies some variables that can be used for FiLEX. This is only a small configuration file, but i hope this will become customisable as i add more features to the application. A breakdown and usage for these settings is below :
allowedExtensions : a comma delimited list of files that are allowed to be uploaded via FiLEX.
downloadFile : the location of the file.cfm so files can be downloaded to the desktop.
extensionsForResize : a comma delimited list of image files that can be resized.
imageSizes : a comma delimited list of dimensions that images can be resized too.
maxFileSize : a limit on the maximum size of file that can be uploaded, in KB.
uniqueDirectory : recommended to leave at N, this is a feature that i have not fully tested.
uploadFile : the location of the upload.cfm so files can be uploaded to the server.
Once that has been done, all that is left to do is to create the .html page that will embed the FiLEX.swf into it. All being well, it should work no problems.
I will not be distributing the source for the .swf yet as im still working on tidying up the Actionscript and MXML within it.
Any feedback, comments, suggestions or criticism is welcome so please leave any comments below.


Jul 30, 2010 at 7:51 AM Hi, I downloaded the package and I got several files and folders with zero bytes, also some MacIntosh files. Is this only for use on Apple machines ? Thanks.
Jul 30, 2010 at 8:06 AM @Ricardo. Those files can be deleted/ignored, they are created by OSX and for whatever reason become visible on Windows. These files normally begin '._'