Thursday, July 30, 2020

Files Upload in Oracle APEX

Item -->  :P9_FILE_BROWSE  (File Browse)

-- Validation (V_FileFormat) --> Type: PL/SQL Function (returning error text)
DECLARE
   v_file   VARCHAR2 (1000);
BEGIN
   v_file := UPPER (TRIM ( :P9_FILE_BROWSE));

   IF LOWER (SUBSTR (v_file, INSTR (v_file, '.', -4) + 1)) IN ('jpeg',
                                                               'jpg',
                                                               'png',
                                                               'bmp',
                                                               'xls',
                                                               'xlsx',
                                                               'pdf')
   THEN
      NULL;
   ELSE
      RETURN 'Please upload jpeg/jpg/png/xls/xlsx/pdf format files only.';
   END IF;
END;

No comments:

Post a Comment

Delete Row Button to all records of Interactive Report in Oracle Apex

 1. add 'Delete' Del column to Report Query 2. Set the Following Properties for the DEL Column Type: Link Heading: Delete Targ...