Jump to content

Recommended Posts

Posted

In IC4, we have a maximum limit for attachment transfers of just under 2GB, which is due to the range of the table storing the file size. What is the actual maximum limit for file transfers in IC5?

Posted (edited)

In IC4, the file size limit was constrained by the int(11) field in the database, which has a maximum value of 2,147,483,647 bytes (~2GB). This is because the int type is a 32-bit signed integer.

In IC5, Invision upgraded the relevant database fields to bigint(20), allowing for a maximum file size of 9,223,372,036,854,775,807 bytes (~8EB). This change means the file size limit on the database side is no longer a bottleneck.

(At least that is what I understand)

Edited by Code Name Jessica
Posted

I wanted to prove what I was saying, but when I:

 

SHOW COLUMNS FROM core_attachments;
+--------------------------+--------------------------------------+------+-----+---------+----------------+
| Field                    | Type                                 | Null | Key | Default | Extra          |
+--------------------------+--------------------------------------+------+-----+---------+----------------+
| attach_id                | int(11)                              | NO   | PRI | NULL    | auto_increment |
| attach_ext               | varchar(250)                         | NO   |     |         |                |
| attach_file              | varchar(250)                         | NO   |     |         |                |
| attach_location          | varchar(250)                         | NO   | MUL |         |                |
| attach_thumb_location    | varchar(250)                         | NO   | MUL |         |                |
| attach_thumb_width       | smallint(6)                          | NO   |     | 0       |                |
| attach_thumb_height      | smallint(6)                          | NO   |     | 0       |                |
| attach_is_image          | tinyint(4)                           | NO   |     | 0       |                |
| attach_hits              | int(11)                              | NO   |     | 0       |                |
| attach_date              | int(11)                              | NO   |     | 0       |                |
| attach_post_key          | varchar(32)                          | NO   | MUL | 0       |                |
| attach_member_id         | bigint(20) unsigned                  | NO   | MUL | 0       |                |
| attach_filesize          | int(11)                              | NO   |     | 0       |                |
| attach_img_width         | int(11)                              | NO   |     | 0       |                |
| attach_img_height        | int(11)                              | NO   |     | 0       |                |
| attach_is_archived       | int(11)                              | NO   |     | 0       |                |
| attach_moderation_status | enum('skipped','approved','pending') | NO   |     | skipped |                |
| attach_security_key      | varchar(255)                         | YES  |     | NULL    |                |
| attach_labels            | text                                 | YES  |     | NULL    |                |
| attach_img_rotate        | smallint(6)                          | YES  |     | 0       |                |
+--------------------------+--------------------------------------+------+-----+---------+----------------+

attach_filesize is still int(11). That has the 2GB limit... Let me dig into this a little more

 

Posted (edited)

I remember trying to do this in IC4 I changed the value of that field, but I ended up getting a critical database error in the ACP under the support tab.

I mentioned this before, hoping it would be updated in subsequent maintenance releases, but I see that nothing has changed in this regard for IC4. The worse news is that IC5 still has this limit. I don’t want to tamper with the table fields again because I’ll just end up with another critical error.

Edited by PanSevence
Posted

I don’t understand this limitation some people need to upload attachments larger than 2GB. A 10GB or even 20GB limit would be much more reasonable. It’s also misleading because setting “no limit” in the ACP still actually enforces a limit due to the table constraints. While it’s understandable that there will always be some limit, this one is particularly small. There should be clear information stating the maximum allowed size.

Maybe the team will comment on this, but considering Beta 10 is one of the last releases before the stable version, I doubt anything will change before the final release. I reported this issue months ago for IC4, and they’ve released many maintenance updates since then, but I never saw any fixes addressing this problem.

Posted

Yeah, I am not one of the developers, I completely understand, that is frustrating when the ACP says no limit, but it is limited in SQL. Curious... I am in the middle of an application currently, but I am wondering if... Let me think about this, maybe another application can be made to create a new table for images, videos, large files, etc. Then call that when uploading or viewing that in community.

Let me finish my current project, and I will get back to you if I create something like that.

Posted (edited)

No, there’s no dedicated application for this, nor official support for larger files. I don’t understand what the problem is with updating this field to a larger data type, seriously.

 

@Matt @Marc

Edited by PanSevence
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...