![]() ![]() I plan on deleting the apex_application_temp_files at that time. The user will need to re-select the 2 files that are “good” and then insert them. If 1 of the 3 files is incorrect(wrong extension or something), I want to display the 3 files on an IR so the user knows which files they tried to upload. ![]() Let’s say a user tries to load 3 files into apex_application_temp_files which will call a “page submit” process to try and insert into my table. I plan to load multiple files into my table. Jeff, that is close to what I want to do. If you want to support drag-and-drop, image copy&paste, load large files asynchronously, restrict the actual file type or maximum file size that may be uploaded, you will probably want to consider a plugin instead, like Daniel Hochleitner’s DropZone. (UPDATE : recreated demo on ) If you want to install the demo app yourself, you may copy it from here. If multiple files are allowed, however, the item will be set to a colon-delimited list of names, so the suggested code to get the files is:Īrr := apex_util.string_to_table(:P1_MULTIPLE_FILES) Normally, to access the file that was uploaded you would query APEX_APPLICATION_TEMP_FILES with a predicate like name = :P1_FILE_ITEM. ![]() NOTE (): this doesn’t stop a user from choosing files of other types (they can change the file type selector) and doesn’t validate the file types. image/*, and can have multiple patterns separated by commas, e.g. This file type restriction can use a wildcard, e.g. In addition, you can now restrict the type of file they may choose, according to the MIME type of the file, e.g. By simply changing attributes on the item, you can allow users to select multiple files (from a single directory) at the same time. The standard File Upload item type is getting a nice little upgrade in Apex 5.1. Updated now that APEX 5.1 has been out for a while. Home APEX File Upload Improvements in APEX 5.1 File Upload Improvements in APEX 5.1 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |