News:

Wondering if this will always be free?  See why free is better.

Main Menu

Problem with image attachments in 2.0.19

Started by landyvlad, January 24, 2023, 10:36:48 AM

Previous topic - Next topic

landyvlad

A user reported as follows:
QuoteWhen one uploads a new topic with a picture that is too big an error message is generated.
(So I) Resize the picture and try and up load again and message report 'You've already tried"!
Surely, it should allow a 'good' upload if the last was rejected.
So one must start a new topic again and then it is accepted! How frustrating is that!

I assume the image he is initially trying to upload is a huge file from a mobile phone.

I have the following attachment settings:
  Maximum attachment folder space  (0 for no limit) 0
  Maximum attachment size per post (0 for no limit) 2048 kB
  Maximum size per attachment (0 for no limit) 1024 kB
  Maximum number of attachments per post (0 for no limit) 10

I am also using the mod: Automatic Attachment Rotation (and Resize) by @dougiefresh and @GL700Wing
which I have set to reduce large images to max 1024x1024 pixels, to reduce file size.

I don't think it's anything to do with the mod though - seems like some strange behavior from SMF itself when it comes to handling image attachments.

Any ideas / thoughts / advice?
   
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Sir Osis of Liver

"You've already tried" is not a core error message, maybe from the mod, but I've never seen it.  What's your upload_max_filesize in php settings?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

landyvlad

I should take my own advice and reply to question I ask within a decent timeframe  :-[

In the forum admin attachment settings are:
Maximum attachment folder space (0 for no limit) 0
Maximum attachment size per post (0 for no limit) 2048 kB
Maximum size per attachment (0 for no limit) 1024 kB
Maximum number of attachments per post (0 for no limit) 10

What PHP file would I look at to find upload_max_filesize?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Arantor

upload_max_filesize is part of the core PHP configuration, not an SMF file. You might need to ask your host.

Sir Osis of Liver

Hey Arantor, good to see you again.  :)

If you have cpanel, look in Software > Select PHP Version > Options.  You should be able to change the setting there.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: