-
Notifications
You must be signed in to change notification settings - Fork 0
How to add custom POST and file filtering parameters to wp native media uploader. Use case: You need several media upload modals on the front-end, each with potentially different files mime types and/or sizes allowance.
nicolaslimet/wp-media-snippet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
How to add custom POST and file filtering parameters to wp native media uploader. Use case: You need several media upload modals on the front-end, each with potentially different files mime types and/or sizes allowance. Adding a custom POST parameter allows to then apply different file restrictions in the wp_handle_upload_prefilter hook for each page/case.
About
How to add custom POST and file filtering parameters to wp native media uploader. Use case: You need several media upload modals on the front-end, each with potentially different files mime types and/or sizes allowance.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published