Opened 6 years ago

Closed 6 years ago

Last modified 3 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: anonymous
Priority: normal Milestone: 2.3
Component: Administration Version: 2.3
Severity: normal Keywords:
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 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1   ryan6 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.

comment:2   ryan6 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   ryan6 years ago

  • Milestone changed from 2.4 (next) to 2.3

Related: #13575

Note: See TracTickets for help on using tickets.