Ticket #1484775 (closed Patches: fixed)

Opened 11 months ago

Last modified 11 months ago

Uploading big files

Reported by: henrique Owned by: till
Priority: 5 Milestone: 0.1-stable
Component: PHP backend Version: 0.1-rc2
Severity: major Keywords: upload
Cc:

Description (last modified by till) (diff)

I have fixed this error uploading big files:

PHP Warning:  Invalid argument supplied for foreach() in /var/www/htdocs/webmail/program/steps/mail/upload.inc on line 39

All I did was add this line before foreach:
if (is_array($_FILES['_attachments']['tmp_name']))

Attachments

upload.inc.patch (3.8 kB) - added by henrique 11 months ago.

Change History

Changed 11 months ago by henrique

  Changed 11 months ago by till

  • description modified (diff)

  Changed 11 months ago by till

  • description modified (diff)

follow-up: ↓ 6   Changed 11 months ago by till

I see the error in there, but how is this related to "big" files? I can see how this happens when people don't select a file and click upload still.

  Changed 11 months ago by till

  • owner set to till
  • status changed from new to assigned
  • milestone set to 0.1-stable

Since it doesn't hurt, I applied your patch in r1085.

Thanks!

  Changed 11 months ago by till

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

in reply to: ↑ 3   Changed 11 months ago by henrique

Replying to till:

I see the error in there, but how is this related to "big" files? I can see how this happens when people don't select a file and click upload still.

I don't know why, but this error appear if the file is big, if the file is small this error not appear.

Note: See TracTickets for help on using tickets.