Firefox PHP

[SOLVED]: Download gets truncated to 12 MB

Posted by knl 
knl
[SOLVED]: Download gets truncated to 12 MB
January 14, 2017 04:45PM
Hi,

I am able to upload big files and I can validate that the file is located in the DB in the correct size, but when a user tries to download any big file it gets truncated to 12 MB and gets corrupted.

I found this guy reporting the same problem, even though he did manage to explain it well.

[www.phorum.org]

So in order to avoid misunderstanding:

I can upload, i.e. attach, any file in any size with success. The file is located in the DB in the correct size and content.

But users cannot download the attachments because all attachments gets truncated to 12 MB and gets corrupted.

Kind regards

UPDATE

I changed to database field "file_data" from MEDIUMTEXT to LONGTEXT and the problem was solved. The file size cheated a bit.



Edited 1 time(s). Last edit at 01/14/2017 05:11PM by knl.
Sorry, only registered users may post in this forum.

Click here to login