WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

patch.diff (497 bytes) - added by donncha 7 years ago.

Download all attachments as: .zip

Change History (4)

donncha7 years ago

comment:1 rob1n7 years ago

  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned

comment:2 rob1n7 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [5527]) Filter max upload file size for import form. Props Donncha. fixes #4320

comment:3 markjaquith7 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:

  1. compare ini_get() to the new value, to see if the new value is bigger
  2. try to ini_set()
  3. use ini_get() to see if it worked
  4. use ini_set() when handling the upload
Note: See TracTickets for help on using tickets.