Enhanced File Handling and Upload/Download Features in App Builder
Posted by tjwolf on July 2nd, 2009. Other posts by tjwolf
Some new features have been recently added to provide enhanced file handling capabilities in the App Builder. The new features, described below, are designed to provide the application developer with more control over file editing and viewing behaviors within the App Builder, as well as provide additional file upload and download capabilities.
Specifying Display and Edit behaviors based on File Type
The App Builder zero.config now contains a list of many of the common file extensions for binary file types such as jpg, gif, avi, jar, zip, etc that you can add to as needed. File types that appear in this list contain binary file content and are therefore not files that you would want to be displayed by the File Editor or the Explorer Code Viewer. Clicking on files of these types from withing the File Editor or File Explorer will instead display some file metadata and not attempt to access the file content for display or editing purposes.
Downloading Files to your Computer
In the File Explorer, there has been a DownLoad button added. When a file is selected, the Download
button is enabled. When clicked, the file Open/Save dialog will appear and allow you to then either:
- Open the file with whatever program you specify to handle that file type, or
- Save (download) the file to your computer
Modifying Jar Files in the Application /lib/ Directory
The File Upload, Copy, Move, and Delete functions in the File Explorer have been enhanced to detect when jar files have been added to, removed from, or renamed in the application’s /lib/ directory, and will automatically resolve the application. To alter the contents of the application /lib/ directory, simply stop the application if it is running, make whatever changes you choose, and then restart the application to pick up the changes.
Let us know what you think of these new features, and as always, any other suggestions are welcome.


