Ticket #4320 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Filter max file size in import uploader

Reported by: donncha Assigned to: rob1n
Priority: normal Milestone: 2.3
Component: Administration Version:
Severity: normal Keywords:
Cc:

Description

It would be really useful if the max file size in wp_import_upload_form() could be modified by filters.

Attachments

patch.diff (497 bytes) - added by donncha on 05/23/07 12:00:32.

Change History

05/23/07 12:00:32 changed by donncha

  • attachment patch.diff added.

05/23/07 14:59:05 changed by rob1n

  • owner changed from anonymous to rob1n.
  • status changed from new to assigned.

05/23/07 15:45:28 changed by rob1n

  • status changed from assigned to closed.
  • resolution set to fixed.

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

05/23/07 18:19:47 changed by markjaquith

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