#1484775 closed Feature Patches (fixed)
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)
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 (1)
Change History (7)
Changed 5 years ago by henrique
comment:1 Changed 5 years ago by till
- Description modified (diff)
comment:2 Changed 5 years ago by till
- Description modified (diff)
comment:3 follow-up: ↓ 6 Changed 5 years ago by till
comment:4 Changed 5 years ago by till
- Milestone set to 0.1-stable
- Owner set to till
- Status changed from new to assigned
Since it doesn't hurt, I applied your patch in [5998438b].
Thanks!
comment:5 Changed 5 years ago by till
- Resolution set to fixed
- Status changed from assigned to closed
comment:6 in reply to: ↑ 3 Changed 5 years 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.

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.