Closed Bug 273248 Opened 20 years ago Closed 20 years ago

Drag and drop of image from Firefox to WordPad doesn't work

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 234921

People

(Reporter: timok, Assigned: bugzilla)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 If you drag and drop the image from http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg to an empty document in WordPad you will get: http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg The image “http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg” If instead you use the right-click menu on the image and do "Copy Image" then "Paste" in WordPad, it works perfectly: the image is inserted. Of course, it works fine in both cases with IE. In order to investigate I wrote the following VB.Net code to save the image when dropping it onto my control: Private Sub pctCover_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles pctCover.DragDrop Console.WriteLine("pctCover_DragDrop") If e.Data.GetDataPresent(DataFormats.FileDrop, True) Then Dim sourceArray As String() = e.Data.GetData(DataFormats.FileDrop, False) Dim source As String = sourceArray(0) Console.WriteLine("Source: " & source) FileCopy(source, "toto.jpg") Console.WriteLine("Image saved") pctCover.Image = Image.FromFile(source) Console.WriteLine("Image shown") End If End Sub When I drag from IE, I get the image displayed and saved and the ouput: pctCover_DragDrop Source: C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\8VY5AVMD\B00006TLTP.08.LZZZZZZZ[1].jpg Image saved Image shown When I do the same from Firefox, the file saved is 0 bytes big, th eimage is not displayed and the console reads: pctCover_DragDrop Source: C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\B00006TLTP.08.LZZZZZZZ-15.jpg Image saved So is it possible to drag and drop an image from Firefox ? Thanks, Timok Reproducible: Always Steps to Reproduce: 1.Open any URL with an image. Take the one above for example. 2.Open wordPad 3.Drag and drop image onto WordPad Actual Results: Instead of image inserted, we get the text: http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg The image “http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg” Expected Results: It should have shown the image itself (like IE does), or at the very least, it should have inserted a link to the image.
(Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0) When I drag the pic and drop it onto the text in wordpad, i get this: http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg The image “http://images-eu.amazon.com/images/P/B00006TLTP.08.LZZZZZZZ.jpg” cannot be displayed, because it contains errors. (it displayes the image when dragged from IE) however, when i drop it on the toolbar, it displays the jpg file in text mode. (the same as IE)
*** This bug has been marked as a duplicate of 234921 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.