[RESOLVED] The image file you tried to attach is invalid.

Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Forum rules
Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Locked
GoleyC
Registered User
Posts: 10
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

[RESOLVED] The image file you tried to attach is invalid.

Post by GoleyC »

I keep getting this message when trying to attach files.
The image file you tried to attach is invalid.
I'll our settings seem correct.... anything to look at?
Last edited by GoleyC on Tue Feb 03, 2009 5:31 pm, edited 1 time in total.
GoleyC

User avatar
CTCNetwork
Registered User
Posts: 65
Joined: Thu Mar 18, 2004 9:41 pm
Location: Nottingham
Contact:

Re: The image file you tried to attach is invalid.

Post by CTCNetwork »

Hi,

Support Request Template...

You or the poster needs to check the actual image file size and its dimensions so that it falls within the limits you have set.
As a test you could try a tiny image to make sure.
Also check that you have included the extensions for images.

Des. . . ;)
Density:- Not just a measurement~Its a whole way of Life.! ! !
Uninvited PM's are Deleted. Uninvited IM's - You get a warning - and get blocked. Capiche?

GoleyC
Registered User
Posts: 10
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

Re: The image file you tried to attach is invalid.

Post by GoleyC »

We've did all the normal testing, double checking attachment settings and allowed extension.

The problem, is, we had no problem until just yesterday.... the server hasn't updated any software besides CPanel and normally, that doesn't affect the forums software, as that has always updated in the past without issues.

We have no mods installed, besides some template edits to allow advertising code to display.

Our PHPBB version is 3.0.4

Anyone else have anything to add.
GoleyC

oXo
Registered User
Posts: 66
Joined: Mon Feb 02, 2009 2:16 am

Re: The image file you tried to attach is invalid.

Post by oXo »

Yes... make sure that the image extension is the proper extension allowed by your board (phpBB3)
Check this image if the image extension you're trying to attach is listed below.
ACP/POSTING/Manage extensions
Image

GoleyC
Registered User
Posts: 10
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

Re: The image file you tried to attach is invalid.

Post by GoleyC »

The image extension are correct...but we are still getting the error message.

I'm at a lost as to why... all the settings seem to be correct.
GoleyC

User avatar
COD3M4ST3R-X
Registered User
Posts: 228
Joined: Wed Nov 05, 2008 7:52 am
Location: Lahore,Pakistan
Contact:

Re: The image file you tried to attach is invalid.

Post by COD3M4ST3R-X »

Check the CHMOD settings of the following folders /files it should be set to CHMOD 777 it might have changed.
Image
Long Live PhpBB!

GoleyC
Registered User
Posts: 10
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

Re: The image file you tried to attach is invalid.

Post by GoleyC »

OK.. we are making progress.

We can upload; .doc, .xls, .gif, .pdf files.

But, .jpeg, .jpg file format return the same error message.

Would file case matter, example: jpg vs. JPG?
GoleyC

oXo
Registered User
Posts: 66
Joined: Mon Feb 02, 2009 2:16 am

Re: The image file you tried to attach is invalid.

Post by oXo »

When you save the file in any image editor you don't need to type the extension on it. what you need to do is type the name of the image then choose the extension below of your image editor.
Don't make it like this FILENAME.jpg.jpg whereas FILENAME.JPG is the one you put as the image name but you forgot the box setting below that is already set to .jpg extension
See sample image:
Image


Hmmmm... maybe I'm wrong because when I try this even with 2 extension filename.jpg.jpg it's still working :lol:

GoleyC
Registered User
Posts: 10
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

[RESOLVED] The image file you tried to attach is invalid.

Post by GoleyC »

After some rooting around.. we found that our php.ini was altered for some routine maintenance and the "upload_max_filesize" had been changed to 2M. We've since increased that to 25M and all is working again.

Thanks for the help and I knew it was something simple.
GoleyC

Locked