Aceros
Active member
I have some larger files I'd like to list in the resource manager (without raising the general upload size limit). I read a suggestion of uploading a dummy file & then replacing it on the backend to get around upload restrictions etc. This seemed like a great solution but I'm running into this error:
I found the xf_attachment table attachment_id points to the data_id which is the prefix of the file in internal_data/attachments/#/prefix-hash
I replaced the file & on accessing get a 500 error + the above in the Server Error Log.
I'm running centminmod & have raised the following (and restarted) in effort to lift this limit:
PHP:
ErrorException: Fatal Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1973093520 bytes) - library/XenForo/FileOutput.php:53
Generated By: Aceros, 21 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(81) "https://www.site.com/forums/resources/file.24/download?version=24"
["_GET"] => array(2) {
["/forums/resources/file_24/download"] => string(0) ""
["version"] => string(2) "24"
}
["_POST"] => array(0) {
}
}
I found the xf_attachment table attachment_id points to the data_id which is the prefix of the file in internal_data/attachments/#/prefix-hash
I replaced the file & on accessing get a 500 error + the above in the Server Error Log.
I'm running centminmod & have raised the following (and restarted) in effort to lift this limit:
- client_max_body_size 2000M (nginx conf)
- client_body_timeout 600s (nginx conf)
- upload_max_filesize 2000M (php.ini)
- post_max_size 2000M (php.ini)
- memory_limit 2000M (php.ini)