WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#4240 closed defect (bug) (fixed)

Import WXR post_max_size < file size fails with AYS then "File is empty. Please upload something more substantial."

Reported by: foolswisdom Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords:
Focuses: Cc:

Description

Import WXR post_max_size < file size fails with AYS then "File is empty. Please upload something more substantial."

ENV: WP / trunk r5411

I have an 18.7 MB WXR file to restore, so I increased upload_max_filesize to 20M, but I did not know to also increase post_max_size from 8M. That is what resulted in this confusing error symptoms.

Attachments (1)

4240.diff (2.1 KB) - added by mdawaffe 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 ryan7 years ago

wp_import_upload_form() should take post_max_size into consideration and display the lesser of it and upload_max_filesize as the limit.

mdawaffe7 years ago

comment:2 ryan7 years ago

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

(In [5964]) Take post_max_size into account when determining the upload limit. Props mdawaffe. fixes #4240

comment:3 ryan7 years ago

  • Milestone changed from 2.4 (next) to 2.3

comment:4 hakre4 years ago

Related: #13575

Note: See TracTickets for help on using tickets.