title: Uploading file into separate table with Oracle APEX 5.1
body: <p>I have a simple Interactive Grid with modal form on table Project which has a FK to my blob storage table:</p>
  
  <pre><code>  CREATE TABLE "PROJECT" 
     (    "ID" NUMBER(7,0) NOT NULL ENABLE, 
      "NAME" VARCHAR2(1000 BYTE) NOT NULL ENABLE, 
      "FILE_CONTENT_ID" NUMBER(7,0) NOT NULL ENABLE, 
       CONSTRAINT "FK_PROJ_FILE_CONTENT_ID" FOREIGN KEY ("FILE_CONTENT_ID")
        REFERENCES "FILE_CONTENT" ("ID") ENABLE 
     )
  
    CREATE TABLE "FILE_CONTENT" 
     (    "ID" NUMBER(7,0) NOT NULL ENABLE, 
      "CONTENT_FILE_NAME" VARCHAR2(1000 BYTE) NOT NULL ENABLE, 
      "CONTENT_SIZE" NUMBER(14,0) NOT NULL ENABLE, 
      "LAST_CHANGED" TIMESTAMP (6) DEFAULT SYSTIMESTAMP NOT NULL ENABLE, 
      "CONTENT" BLOB DEFAULT empty_blob () NOT NULL ENABLE, 
      "COMMENTS" VARCHAR2(4000 BYTE), 
       CONSTRAINT "PK_FILE_CONTENT" PRIMARY KEY ("ID")
     )
  </code></pre>
  
  <p>In modal edit project form I want to upload file and save it in FILE_CONTENT table and then link it to the PROJECT record which editing in same modal. How can I do so?</p>