Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Sir Osis of Liver on January 25, 2021, 12:01:56 AM

Title: Can't attach large png
Post by: Sir Osis of Liver on January 25, 2021, 12:01:56 AM
2.0.17 forum, attach 14.4 mb png, seems to upload file then reverts to blank reply editor "Start new topic".  "Max attachment size per post" and "Max size per attachment" are 25500 kb.  Convert file to 4.2 mb jpg attaches normally.  Allowed file types includes png.  Running resize attachments mod, same problem with mod installed/uninstalled. >:(

n/m, fixed it.  post_max_size in php.ini was 8 mb, increased to 25 mb now it works.
Title: Re: Can't attach large png
Post by: Herman's Mixen on January 25, 2021, 02:13:46 AM
php.ini,max upload size ?
Title: Re: Can't attach large png
Post by: Sir Osis of Liver on January 25, 2021, 11:23:06 AM
post_max_size was causing the problem, max_upload_size was set at 25 mb.  Both at 25 mb now.
Title: Re: Can't attach large png
Post by: vbgamer45 on January 25, 2021, 11:29:14 AM
I always thought it was strange in PHP that they have two settings that need to be adjusted.
Title: Re: Can't attach large png
Post by: Sir Osis of Liver on January 25, 2021, 12:08:03 PM
They must make a distinction between uploads and posts, no idea how or why.
Title: Re: Can't attach large png
Post by: GigaWatt on January 25, 2021, 12:13:57 PM
Quote from: Sir Osis of Liver on January 25, 2021, 12:08:03 PM
They must make a distinction between uploads and posts, no idea how or why.

One goes in the DB, the other... probably not.
Title: Re: Can't attach large png
Post by: lemur21 on July 29, 2021, 10:52:50 PM
I am now having this same problem.

Max upload size is set to 0 (no limit)

The jpg I'm attaching is 660kb (tiny)

The problem only began in the last 2-3 days; I've made no changes to my forum software in, say, 4-6 months.
Title: Re: Can't attach large png
Post by: shadav on July 29, 2021, 10:58:29 PM
Quote from: lemur21 on July 29, 2021, 10:52:50 PM
I am now having this same problem.

Max upload size is set to 0 (no limit)

The jpg I'm attaching is 660kb (tiny)

The problem only began in the last 2-3 days; I've made no changes to my forum software in, say, 4-6 months.

do you have a php.ini in your root folder?
or in your hosting account do you see php settings anywhere?
Title: Re: Can't attach large png
Post by: Sir Osis of Liver on July 30, 2021, 12:06:33 AM
Max upload size is an admin setting, post_max_size and max_upload_size are php settings.  You should be able to get to them via cpanel.  This problem can also be caused by outdated memory limits in core files.  If it just started happening with no changes to forum, your host may have changed php settings.
Title: Re: Can't attach large png
Post by: lemur21 on July 30, 2021, 09:56:34 AM
To make things easier - I'm going to continue the discussion over here:

https://www.simplemachines.org/community/index.php?topic=578307.0