General Community > Chit Chat

Attachments that can be posted to a forum limited to 4,294,967,296 by default?

(1/1)

ApplianceJunk:
http://wiki.simplemachines.org/smf/Attachment


--- Quote ---By default, the number of attachments that can be posted on a forum is limited to 4,294,967,296.
--- End quote ---

Why 4,294,967,296?

SMFHacks.com Team:
That number is the max size  in mysql of of the database id field for the attachments

ApplianceJunk:
thanks

Arantor:
Actually, it's 4,294,967,295 (1 less) because the maximum of that field is not 2^32 but 2^32 - 1.

In any case you *really* don't want to be pushing files that large through PHP code at any point, because it's going to invariably time out (since the entire download has to be completed in the lifetime of a PHP script)

Navigation

[0] Message Index

Go to full version