File Type Validation in Oracle APEX by Himansu Behera · Published September 14, 2022 · Updated September 14, 2022 Sometimes requirements come to check file type before uploading into the application to restrict the unusual file type.Below steps will guide to check file type before uploading into database column and show an error message of wrong file type selection.These steps will check whether the file is in JPG, JPEG and PNG format. If not, then error message will appear.Step : Crete a validation on your file browse type item.(Here my page item name is P21_FILE_CONTENT)Validation name – filetype_extension_validationValidation type – Item matches Regular ExpressionRegular Expression : ([0-9a-zA-Z :\\-_!@$%^&*()])+(.jpg|.JPG|.png|.PNG|.jpeg|.JPEG)$Error Message : Upload only JPG, PNG, JPEG images only.. If someone trying to upload file with other formats the error message will appear.Now you can change this regular express to check other file types like PDF, CSV etc.Thanks.
Customise radio group in Oracle APEX April 6, 2023 by Himansu Behera · Published April 6, 2023 · Last modified May 21, 2023
Keyboard shortcut for Interactive Grid in Oracle APEX August 28, 2022 by Himansu Behera · Published August 28, 2022