RM 2.1 Large attachment can not upload


This is what they sent me, use at your own risk, etc.

Hopefully we can roll this out in XenForo 2.2 in full, but for now you can make the following changes.

Code:
Firstly please run this SQL query:

ALTER TABLE xf_attachment_data CHANGE file_size file_size bigint NOT NULL;

Then in Entity\AttachmentData.php. Find:

'file_size' => ['type' => self::UINT, 'required' => true],

and replace with

'file_size' => ['type' => self::UINT, 'required' => true, 'max' => PHP_INT_MAX],

That should get you going again for now!

1. You would run the SQL query on your database via phpMyAdmin.

2. You would find the file to edit at {location of your forum}/src/XF/Entity/AttachmentData.php

Alternatively, submit a support ticket asking your question and asking if this fix is correct for your version.
 
There is another option...

 



1. You would run the SQL query on your database via phpMyAdmin.

2. You would find the file to edit at {location of your forum}/src/XF/Entity/AttachmentData.php

Alternatively, submit a support ticket asking your question and asking if this fix is correct for your version.
not help.same problem
 
Top Bottom