image upload not working with Safari 4

mariuss - July 10, 2009 - 09:52
Project:AJAX Picture Preview
Version:6.x-1.2
Component:Code
Category:task
Priority:critical
Assigned:Unassigned
Status:active
Description

At some point it was working for sure with Safari, my guess is that version 4 of the browser introduced this problem.

Tested only for accounts with no picture at all. After selecting the image and clicking Upload you do see the throbber and then the message that you must save. After saving there is no picture attached.

#1

hobgobbler - September 6, 2009 - 17:41

subscribe

#2

alli.price - September 8, 2009 - 09:48

I've got the module working again, basically it's just due to the age of the module and markup changes over time.

Change line 164 from:
'$('.picture a img').attr('id', 'img-picture');'
to:
'$('#user-profile-form .picture img').attr('id', 'img-picture');'

Also did a bit of css for the loading indicator:
'#edit-picture-upload-wrapper #loading {
display: inline-block;
overflow: hidden;
margin-left: 5px;
padding-top: 15px;
height: 5px;
width: 15px;
position: relative;
vertical-align: middle;
top: auto;
left: auto;
line-height: auto;
background: url(/misc/throbber.gif) no-repeat bottom left;
}

#edit-picture-upload-wrapper #loading img {
display: none;
}'

I've got a couple other fixes which I'll probably put into a proper patch.

 
 

Drupal is a registered trademark of Dries Buytaert.