Webmastersite.net
Register Log In

Avatar doesn't show

Comments on Avatar doesn't show

rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted May 01, 2007 - 7:20 AM:

Hi,

When a member uploads an avatar and it has an extra dot/period in it, no image shows.
example upload:
tomsmith.jpg
that works.
tom.smith.jpg
doesn't work.
Is there any way to allow for this? Not sure if it's the same with image upload.

Thanks,
rw
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 01, 2007 - 3:21 PM:

If the filename is tom.smith.jpg, that means the file extension is .smith.jpg. I presume you don't have .smith.jpg listed as a legal file extension for avatars, thus it's properly rejected.

It wouldn't be appropriate to treat only the last dot as the extension since that would prevent working with many common file extensions like .tar.gz, .tar.bz2.
rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted May 08, 2007 - 11:43 AM:

OK, so when they upload tom.smith.jpg it doesn't work. Is there anyy way around that?

Thanks,

rw
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 11, 2007 - 10:56 AM:

Tested it, and post 2 is incorrect, in fact it works. <img src="{MEMBERAVATARURL}"> shows tom.smith.jpg as expected.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.