Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: I can´t upload images in XOOPS 2.2.3
by jordi_rc on 2006/9/2 8:52:22

Hello all!

I am just a beginner in Linux and XOOPS but I have found the solution.

Is related with the file permission of the IMAGE, not the directory. At least, it worked for me.

I was wondering why so many people have this problem.
The fact is that when you save a picture to a cd for example, its access is changed to read only, but in some linux systems it is recorded as if it has no permission, it seems.

I looked at the file permissions (in my Xubuntu linux) and I see that the file had no permissions at all, even to read.

The solution is to change its permissions to read and write for all, graphically thru the GUI (in my case, thunar) or with chmod 777. Remember, we act over the image file of the avatar.

After this, I was able to upload it.

If you don't have control over this like me, maybe you can upload people files to another dir with some module or the image manager, or ask people to send you the avatars, and then chmod them, and upload.

Please test if this works for you all, and if it does, SPREAD this trick so everyone fixes this. This is a common problem I saw all people have in all XOOPS forums, in all languages.

So long,
Jordi
Re: I can´t upload images in XOOPS 2.2.3
by m0nty on 2005/12/22 11:16:15

it's as secure as probability is.

unfortunately there isn't much else you can do if your server has safe mode & open_basedir restrictions on it.. (tho they are meant to improve security, they more often than not cause more hassle than it's worth)
Re: I can´t upload images in XOOPS 2.2.3
by cmagana on 2005/12/22 9:28:54

thanks, it works fine, but, is it secure??
Re: I can´t upload images in XOOPS 2.2.3
by m0nty on 2005/12/21 4:59:42

xoops 2.2 uploader.php doesn't contain the imagesize check for invalid content, that's y it works for you..

it seems this is all dependant on server configuration, with open_basedir or some other server issue.. not a XOOPS problem!!!

it works perfectly on all the servers i have access to..


to resolve the issue if your server host is configured differently

open class/uploader.php

find & remove/comment out the lines below

le="color: #000000"><?php if ( $ext && in_array( $ext, array( 'gif', 'jpg', 'jpeg', 'png', 'bmp', 'xbm' ) ) ) { // Prevent sending of invalid images that would crash IE if ( ! ( $info = getimagesize( $this->mediaTmpName ) ) ) { $this->setErrors( 'Invalid file content' ); return false; } }
Re: I can´t upload images in XOOPS 2.2.3
by cmagana on 2005/12/21 4:34:22

I have the same problem, I've tried all options and i can't upload the image, my image in jpg 60 x 35.
I receive this message: "Invalid file content"
the image works fine. i don't believe it´s invalid i've tried with few images and i get the same error.

Who's Online

822 user(s) are online (758 user(s) are browsing Support Forums)


Members: 0


Guests: 822


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits