17.9 Managing Static Application Files

Navigate to Shared Components to upload, view, download, and delete static application files (including images, CSS files, and other files which must be managed independently).

17.9.1 Specifying the Location of Static Application Files

Specify the location of static application files.

Application files are stored with your application definition in the Oracle database. For performance reasons, you can also store your application files on your Web server. Edit the Static File Prefix attribute to change the location.

To edit the Static File Prefix attribute:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under User Interface, select User Interface Attributes.
  3. Click the User Interface tab.
  4. Under General, Static File Prefix - Enter the virtual path the Web server uses to point to static application files. Leave this attribute blank to reference files stored with your application definition in the database. For performance reasons you can also store your application files on your Web server and reference them using a valid URL. Example:
    /myFiles/
    http://contentDeveliveryNetwork.com/myFiles/
    
  5. Click Apply Changes.

17.9.2 Uploading Static Application Files

Upload static application files from Shared Components.

To upload a static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. To upload a file, click Upload File.
  4. On Upload Static Application File(s):
    1. Directory - Enter the name of the directory where the file should be stored. If no directory is specified, the file is stored in the root directory.
    2. File - Find the location of the file to be added to the application.
    3. File Character Set - Indicate the character set encoding for the file to be uploaded. This attribute only applies to text files.
    4. Unzip File - If you select On, the uploaded Zip file is automatically unzipped and stored in the specified directory. Note that the actual Zip file is not stored. This attribute is ignored if the uploaded file is not a Zip file.
  5. Click Upload or Upload and Upload Another.

17.9.3 Viewing the Static Application Files Report

View the Static Application Files Report.

To view static application files as a report:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click View Report icon.

    A report appears. To customize the report, use the Search bar at the top of the page.

    The Static Application Files report includes the following columns: File Name, Mime Type, File Size, Reference and a Download link.

  4. To view file details:
    1. Click the File Name.
      The Edit Static Application File dialog appears.
    2. To delete the file, click Delete.
    3. To exit, click Cancel.

See Also:

"About the Search Bar"

17.9.4 Referencing Static Application Files

Reference a static application file in your application using #APP_IMAGES# substitution string.

Static application files are only available to the currently selected application. To view sample syntax for uploaded images, see the Reference column on the Static Application Files report.

17.9.5 Downloading Static Application Files

Download an uploaded static application file, or download all static application files in a Zip.

17.9.5.1 Downloading a Static Application File

To download an uploaded static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click View Report icon.

    A report appears.

  4. Locate the file to be downloaded and click the Download link.

17.9.5.2 Downloading All Static Application Files in a Zip

To download all static application files in a Zip:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. Click Download as Zip.

17.9.6 Deleting Static Application Files

Delete uploaded static application files.

17.9.6.1 Deleting a Static Application File

Delete an uploaded static application file in the Edit Static Application File dialog.

To delete an uploaded static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click the View Report icon.

    A report appears. To customize the report, use the Search bar at the top of the page.

  4. Click the File Name of the file to be deleted.
  5. On the Edit Static Application File page, click Delete.

17.9.6.2 Deleting All Static Application Files

To delete all uploaded static application files:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. Click Delete All Files.