File Upload Configuration & Display in Interactive Report – Oracle APEX

 

3. Prerequisites

  • Oracle APEX access (Developer role)
  • Database table with BLOB column (e.g., DOCUMENTS)
  • Required columns:
    1. DOCUMENTS (BLOB)
    2. MIME_TYPE (VARCHAR2)
    3. DOCUMENT_NAME (VARCHAR2)
    4. CHAR_SET (VARCHAR2)
    5. Primary Key (e.g., MAINTENANCE_ID)


4. Procedure

Click Save & Run

 

4.3 File Upload Item Configuration




4.3.1 Configure Storage Attributes

   Attribute

      Value

BLOB Column

  Bill

MIME Type Column

  MIME_TYPE

Filename Column

 Bill_NAME

Character Set Column

  CHAR_SET

 

4.3.2 Set File Metadata Columns

  • Copy from database and map:

Database Column

         APEX Setting

     MIME_TYPE

         MIME Type Column

     DOCUMENT_NAME

         Filename Column

      CHAR_SET

         Character Set Column

 

4.3.3 Define File Types

  • Go to Storage → File Types
  • Set allowed types:

                                *.pdf, *.jpg


 

4.4 Download BLOB Configuration

  • Go to:
    Documents Item → Identification

Set the following:

Property

                 Value

Type

          Download BLOB



BLOB Column

         BILL

Primary Key Column

          MAINTENANCE_ID

MIME Type Column

          MIME_TYPE

Filename Column

          BILL_NAME

Character Set Column

          CHAR_SET


4.5 Testing

  1. Upload a file from the form
  2. Save the record
  3. Open Interactive Report
  4. Verify:
    1. File size appears (via DBMS_LOB.GETLENGTH)
    2. File download works correctly
    3. Correct filename and MIME type.


Comments

Popular posts from this blog