Skip to content

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.

Notifications You must be signed in to change notification settings

nicolaslimet/wp-media-snippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

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