[buddypress-trac] [BuddyPress Trac] #5417: Avatar upload error mesage

buddypress-trac noreply at wordpress.org
Thu Feb 20 21:25:32 UTC 2014


#5417: Avatar upload error mesage
--------------------------+--------------------
 Reporter:  stefwilliams  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  2.0
Component:  Avatars       |     Version:  1.9.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------
Changes (by boonebgorges):

 * priority:  normal => low
 * type:  enhancement => defect (bug)
 * component:  Core => Avatars
 * milestone:  Awaiting Review => 2.0


Comment:

 Thanks for the report. Actually, in your case, the file length is not the
 problem. The problem is the fact that you're uploading a file whose file
 is formatted like a BP avatar image file. When processing the crop,
 BuddyPress deletes all existing avatars before cropping and re-saving the
 new avatar. But because your new filename looked like an old avatar from
 BP's point of view, it was getting deleted too; as a result, there was
 nothing to crop, and BP threw an error.

 It's an edge case to be sure, but we can work around it by ensuring that
 the existing file is not named the same as the uploaded file before
 deleting the existing one.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5417#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list