Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#4 | delete-pic.patch | 979 bytes | Jody Lynn |
#3 | user_172993_0.patch | 1.14 KB | drewish |
#2 | user_172993.patch | 1.26 KB | drewish |
Comments
Comment #1
drewish CreditAttribution: 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 CreditAttribution: drewish commentedeasier than i thought... the old $account is put on the form. we can just look at its picture.
Comment #3
drewish CreditAttribution: 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) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.