1
sa1ad
Can't upload custom avatar?
  • 2003/5/10 3:09

  • sa1ad

  • Just popping in

  • Posts: 2

  • Since: 2003/4/24


Hi everyone. I have a problem on my site. I am unable to upload custom avatars. I have ensured that the uploads folder is writable and have activated custom avatars in preferences. However, when I try to upload a small image (within the set size constraints), I am given the following error message:

Media Upload Errors
Invalid image file

Any help would be greatly appreciated,
Sa1ad

2
Digiegirl
Re: Can't upload custom avatar?
  • 2003/5/10 5:42

  • Digiegirl

  • Just popping in

  • Posts: 44

  • Since: 2002/8/23


Hi Salad,

I've only had this problem in xoopsgallery when trying to upload an image file with a file extension like jpe instead of jpeg.

Does this happen for all avatars you try to upload or just a particular one? Check the file extension and make sure it's jpg, jpeg, gif etc.

Cheers,
Dee

3
sa1ad
Re: Can't upload custom avatar?
  • 2003/5/10 13:34

  • sa1ad

  • Just popping in

  • Posts: 2

  • Since: 2003/4/24


Hi Dee, Thanks for replying.

I have tried to upload a few different files with jpg and gif extensions. I get the same error each time.
Sa1

4
Evil1
Re: Can't upload custom avatar?
  • 2003/5/16 21:57

  • Evil1

  • Just popping in

  • Posts: 5

  • Since: 2003/5/1 0


I have the exact same problem, please help =/

5
sylvainb
Re: Can't upload custom avatar?
  • 2003/5/16 22:13

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi, got this problem with my french web hosting!
The only way to solve that was to comment some code in /class/uploader.php :
Quote:

if (isset($this->maxWidth) || isset($this->maxHeight)) {
if (false === ($this->mediaDimention = getimagesize($this->mediaTmpName))) {
$this->setErrors('Invalid image file');
return false;
}
}

You can try this but you have to know that every user can upload a really big avatar like Billy with his 4x4 car (391 x 299) on my site...and i can't change it!

6
Jack404
Re: Can't upload custom avatar?
  • 2003/5/17 0:54

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


On another of the servers that I've worked on, the problem was CHMOD. Double-check your permissions for the user avatar folder.

Good luck!

7
onokazu
Re: Can't upload custom avatar?
  • 2003/5/17 2:13

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Maybe your serevr has openbase_dir restriction enabled.
Turn on the PHP debug and see if any error messages are displayed.

8
Evil1
Re: Can't upload custom avatar?
  • 2003/5/17 8:08

  • Evil1

  • Just popping in

  • Posts: 5

  • Since: 2003/5/1 0


That was it! Thanks Onokazu =).

9
onokazu
Re: Can't upload custom avatar?
  • 2003/5/17 8:12

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


It's ok to have the openbase_dir restriction enabled, as long as the temporary folder where files are temporarily uploaded is accessible (defaults to /tmp).

10
Evil1
Re: Can't upload custom avatar?
  • 2003/5/17 21:38

  • Evil1

  • Just popping in

  • Posts: 5

  • Since: 2003/5/1 0


Yep thats what i did, when i turned on the php debug it was giving errors from the /tmp folder, so its all good

Login

Who's Online

264 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits