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.
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.
Comments on Avatar doesn't show
Experienced
Usergroup: Customer
Joined: Jul 29, 2005
Total Topics: 30
Total Comments: 65
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Experienced
Usergroup: Customer
Joined: Jul 29, 2005
Total Topics: 30
Total Comments: 65
OK, so when they upload tom.smith.jpg it doesn't work. Is there anyy way around that?
Thanks,
rw
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Tested it, and post 2 is incorrect, in fact it works. <img src="{MEMBERAVATARURL}"> shows tom.smith.jpg as expected.