News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Can't attach large png

Started by Sir Osis of Liver, January 25, 2021, 12:01:56 AM

Previous topic - Next topic

Sir Osis of Liver

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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Herman's Mixen

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Sir Osis of Liver

post_max_size was causing the problem, max_upload_size was set at 25 mb.  Both at 25 mb now.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

vbgamer45

I always thought it was strange in PHP that they have two settings that need to be adjusted.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

They must make a distinction between uploads and posts, no idea how or why.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

GigaWatt

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.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

lemur21

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.

shadav

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?

Sir Osis of Liver

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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lemur21

To make things easier - I'm going to continue the discussion over here:

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

Advertisement: