Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4320 closed enhancement (fixed)

Filter max file size in import uploader

Reported by: donncha's profile donncha Owned by: rob1n's profile 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 18 years ago.

Download all attachments as: .zip

Change History (4)

@donncha
18 years ago

#1 @rob1n
18 years ago

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

#2 @rob1n
18 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

#3 @markjaquith
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:

  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.