Skip to Main Content

Title region

Breadcrumbs

Image Upload Parameters

The action uses a defined JavaScript function to evaluate RESTful service handler query parameters before uploading an image. Returned query parameters are used in the upload RESTful handler to save images in the database table (query parameters are available via PL/SQL bind variables).

Preview components

Click on the page component below to preview its configuration in the Oracle APEX page designer.

Initialization JavaScript Code

Alternatively, the browse parameters can be set (once on page load) using the plug-in JavaScript Initialization Code.
function( pOptions ) {
  pOptions.imageUploadParams = $.extend( pOptions.imageUploadParams, {
    "paramName": "paramValue"
  } );
  return pOptions;
}

Documentation

Read the documentation to learn more about the supporting dynamic action plug-in features.

Learn more

Browsing images using custom query parameters is described in Browse Image Parameters.

Global Page

The supporting dynamic action plug-in can be used on Oracle APEX global page to customize the plug-in across the application.

Live demo

Folder

Plug-in

Requirements

Dynamic action implementing the supporting dynamic action plug-in must listen to the plug-in event UC Froala Before Initialization. It can be defined for 

  • JavaScript Expression (document) - customizes all items on a page
  • page items -  customizes the given page items
  • jQuery selector - customizes page items having given class name


RESTful handler uploading images

This sample application is delivered with an example RESTful service implementing custom handlers to upload and browse images with default and custom query parameters.

  1. Download and install the plug-in sample application in your local environment.
  2. Go to SQL Workshop \ Restful Services
  3. Preview the sample application service ucfroalasamplerest
  4. Preview handlers: browse, browseFolder, upload, and uploadFolder


Example images

Use the buttons Load Example 1 and Load Example 2 above the plug-in to load sample CLOB containing images to test upload.