https://github.com/dani3lsun/apex-plugin-filesizechecker
Oracle APEX DynamicAction Plugin - Filesize Checker
https://github.com/dani3lsun/apex-plugin-filesizechecker
oracle oracle-apex-plugin orclapex plsql
Last synced: 5 months ago
JSON representation
Oracle APEX DynamicAction Plugin - Filesize Checker
- Host: GitHub
- URL: https://github.com/dani3lsun/apex-plugin-filesizechecker
- Owner: Dani3lSun
- License: mit
- Created: 2015-10-16T11:34:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-17T18:40:45.000Z (over 9 years ago)
- Last Synced: 2025-10-17T04:22:59.234Z (8 months ago)
- Topics: oracle, oracle-apex-plugin, orclapex, plsql
- Language: SQLPL
- Homepage:
- Size: 90.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oracle APEX DynamicAction Plugin - Filesize Checker
This plugin checks/validates the max size of an file input field. The validation is handled on client side via Javascript.
If the input file is greater than max. allowed size a Javascript alert is thrown and the file item is cleared.
## Changelog
#### 1.1 - Added different alert types (simple JS alert and Apex dialog)
#### 1.0 - Initial Release
## Install
- Import plugin file "dynamic_action_plugin_de_danielh_filesizechecker.sql" from source directory into your application
- (Optional) Deploy the CSS/JS file from "server" directory on your webserver and change the "File Prefix" to webservers folder.
## Plugin Settings
The plugin settings are highly customizable and you can change:
- Max size (in byte) - Maximum allowed size of a file in Byte. Default is 1MB (1048576 bytes)
- File Input Item - Choose the file input item for this action
- Alert text - Alert text if the file size is greater than allowed max. size
- Alert type - Choose between simple JS alert or Apex 5 dialog window
- Alert Text (no Browser Support) - Alert text if the browser doesn´t support this feature.
## How to use
Create a new Dynamic Action with event "on change" on your file input item. As action choose "Filesize Checker".
## Demo Application
https://apex.oracle.com/pls/apex/f?p=APEXPLUGIN
## Preview

---