17.8 Managing Static Application Files

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

17.8.1 Specifying 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.

To verify the Static File Prefix attribute for an application:

  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. In 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.8.2 Uploading Static Application Files

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:
    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 - Enter 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 Yes, 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.8.3 Viewing the Static Application File Report

To view details about 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. To customize the report, use the Search bar at the top of the page.

    The Static Application Files report displays the filename, MIME type, file size, a download link, and substitution string syntax.

  4. To view additional details, click the Edit icon. If the file is an image, the image displays.
  5. To delete the file, click Delete.
  6. To exit, click Cancel.

See Also:

"About the Search Bar"

17.8.4 Referencing Static Application Files

You can 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.8.5 Downloading Static Application Files

Learn how to download an uploaded static application file or download all static application files in a Zip.

17.8.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.8.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.8.6 Deleting Static Application Files

Learn how to delete uploaded static application files.

17.8.6.1 Deleting a Static Application File

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. Select the file to be deleted.
  5. On the Edit page, click Delete.

See Also:

"About the Search Bar"

17.8.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.