#4320 closed enhancement (fixed)
Filter max file size in import uploader
Reported by: | donncha | Owned by: | rob1n |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
It would be really useful if the max file size in wp_import_upload_form() could be modified by filters.
Attachments (1)
Change History (4)
#3
@
18 years ago
Keep in mind that this only allows you to reduce the max_upload_size... not increase it beyond the limit specified in php.ini
In order to support increasing, we'd have to:
- compare
ini_get()
to the new value, to see if the new value is bigger - try to
ini_set()
- use
ini_get()
to see if it worked - use
ini_set()
when handling the upload
Note: See
TracTickets for help on using
tickets.
(In [5527]) Filter max upload file size for import form. Props Donncha. fixes #4320