Drag/Drop image url in IE
Posted
by pierre
on Stack Overflow
See other posts from Stack Overflow
or by pierre
Published on 2010-05-28T14:27:11Z
Indexed on
2010/05/28
14:32 UTC
Read the original article
Hit count: 611
I have a requirement in our web app. to allow users to drag an image from an external site and drop it in a text editor they have open in our app. This is, as you'd expect, to let them embed the image in the document (its a rich text editor).
In IE 8 this functionality appears to be broken. If I drag/drop, IE uses a relative URL for the 'src' tag on the image - which means I cannot then download the file and store it since I dont know the full address (eg: '../../imgs/myImage.png')
Safari and Firefox do not do this; they provides the fully-qualified address (eg: www.mysite.com/imgs/myImage.png).
Is this a bug in IE or just WebKit/Mozilla going the extra mile?
© Stack Overflow or respective owner