I tried to fully discribe my problem in the title. Anyway, i'm using the image module so that users can upload their own image.
Example of my problem:
If i upload file example1.jpg it's called picture-1.jpg [FINE]
When i upload example2.jpg it replaces to original and it's still called picture-1.jpg [FINE]
But when i upload: example3.gif drupal names it picture-1.gif, but it does not delete picture-1.jpg. [PROBLEM]
This is a problem because im using my own layout and code to show the userpicture in a custom profile.
IF!!this is not fixable, where can i select the extensions that are permitted to be uploaded as a userpicture?
Anyone?
Comments
Comment #1
drewish commentedare you having them create image nodes or are they setting uploading the image to their user profile fields? based on your initial description and the paths you provided i think this is really a bug with the core user.module.
i just checked and this is still a bug in 6.x. we probably just need to delete picture-nid.* when uploading a new picture.
Comment #2
drewish commentedeasier than i thought... the old $account is put on the form. we can just look at its picture.
Comment #3
drewish commentedwhoops, that last patch only works when you upload a different file format.
Comment #4
jody lynnTested and rerolled for HEAD.
Comment #5
gábor hojtsyWell, this was committed in http://drupal.org/cvs?commit=92224 and released in RC1. I just forget to close this issue, and thank you for the fix.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.