Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Upload file and restrict based on mime types

user-vohodJun 13 2023 — edited Jun 13 2023

Hi,
I've a requirement to upload files with only some extensions.
The "File Browse" item has Settings of "File Types" where we can define what type of files are allowed to be uploaded.
I am using "image/jpeg, image/jpg" as File types setting. if I browse a .png file then showing this type of error message.
Is there any way we can hide this message?

Or can we get the MIME type of the file when we select the file before adding it to the database? So we can create a proper validation
Any help would be appreciated.

Thanks.

Comments
Post Details
Added on Jun 13 2023
2 comments
1,724 views