Drag and Drop from Thunderbird creates 0-bytes file

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

jvdwaa
Junior Member
Junior Member
Posts: 2
Joined: 2007-06-15, 21:04 UTC

Drag and Drop from Thunderbird creates 0-bytes file

Post by *jvdwaa »

When I drag an attached file in a mail message from Thunderbird 2.0.0 to TC 7.0, a file of zero bytes is created. All previous versions of TC worked OK.
Dragging to the desktop (XP) works fine too, dragging from the desktop to TC works also fine (so I have a work around :( )
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Very likely the same issue as reported here:

+ drop failure with thunderbird

+ Drag & drop images from Firefox?

You may find more related threads searching the forum for "drag drop Firefox", "drag drop Thunderbird", "drag drop Mozilla" (without the double quotes).

Karl
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Cannot confirm that :!:

I'm using TB 2.0.0.4 and TC7 final under Win2KSP4.

:?: Problem fixed perhaps with TB 2.0.0.4?

EDIT: Sorry, i can confirm that now. It happens exactly as described in this post by sqa_wizard. Strange...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately that's what Thunderbird sends to me in the IDropTarget.Drop function. :(
Author of Total Commander
https://www.ghisler.com
jvdwaa
Junior Member
Junior Member
Posts: 2
Joined: 2007-06-15, 21:04 UTC

Drag and Drop from Thunderbird creates 0-bytes file

Post by *jvdwaa »

Tested again with 7.01, same result.

The workaround via the taskbar works, but only if you don't minimize TC to the tray automatically. If you have set the latter to yes, trying to drop the file via the taskbar will minimize TC......
Still strange that the via-route works ok, you should expect the same behaviour.

Joost
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm sorry but I don't have a solution for this problem. I have tested it a debugger: In the "Drop" method, both Firefox and Thunderbird pass a name to a file in the TEMP directory to Total Commander - this file is empty. I have no idea how I could tell these programs to put data in these files. This problem seems to exist only with these two programs.
Author of Total Commander
https://www.ghisler.com
cubic
Junior Member
Junior Member
Posts: 78
Joined: 2007-07-18, 12:21 UTC

confirmed

Post by *cubic »

Hi.
I have the same problem.

Maybe it will help you if I told you that it works to drag the file on desktop.
Maybe the authors of Mozilla knows better where the problem is.

Workaround (not so perfect... I know :) ):
1 drag the file on desktop
2 from desktop drag it in Commander.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The workaround is to drag it to the TC icon in the taskbar as described above, wait until TC jumps to the foreground, and then drop it in a TC panel. I have no idea why this works, but it seems that Mozilla fills the dummy files with data in this case...
Author of Total Commander
https://www.ghisler.com
jawtab
Junior Member
Junior Member
Posts: 2
Joined: 2007-12-27, 16:42 UTC

IE Tab workaround

Post by *jawtab »

This bug is a big pain! I just found out that IE is fine when you click and drag to TC. Download the IE Tab plugin for Firefox and in a single click you can now drag images to your TC.


URL... dont work... since im a new user.
google "IE Tab firefox plugin"

enjoy

---

also don't forget if you CTRL-ENTER a directory it will open a windows explorer folder and you can also drop folders from firefox this way also...

---

this one also kicks ass. especially the directory menu feature. sooo much easier to click and drag folder vs one at a time... this should be standard in my opinion.

google "Ultra TC editors"

-j
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Did you try the taskbar workaround?
Author of Total Commander
https://www.ghisler.com
DennisMoore
Junior Member
Junior Member
Posts: 24
Joined: 2008-03-06, 14:17 UTC

Post by *DennisMoore »

Just reproduced this behaviour with my Development Studio and Firefox.

Firefox first creates a zero-byte File, then raises the DragDrop-Event synchronously, and when the program execution continues the file is filled with data.

For me this is a crystal-clear bug in Firefox. You cannot send a filename to another program when the file itself is not filled. This must end in conflicts.

Since Windows-Explorer does almost everything multithreaded its working in it. Unfortunately Total Commander seems not to do so.

My Testprogram first created 0-byte Files when I tried to copy the Image during the DragDrop Event. To correct this, I created a thread which waits some ticks until the DragDrop Event finished and then tries to copy aswell.

Result: An Image with 1592 Bytes, just like the source-image in the temp-Directory.
DennisMoore
Junior Member
Junior Member
Posts: 24
Joined: 2008-03-06, 14:17 UTC

Post by *DennisMoore »

No need to fix this bug in case you want to Upgrade to Firefox 3.0.
Beta 5 works like charm when dragging files into explorer.
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2DennisMoore
Beta 5 works like charm when dragging files into explorer.
Thanks for this info, but in explorer it also works fine with Firefox 2.x.

The 0-byte issue occurs in TC only. Did you also try to drop a file onto TC with Firefox 3 b5?
DennisMoore
Junior Member
Junior Member
Posts: 24
Joined: 2008-03-06, 14:17 UTC

Post by *DennisMoore »

Sorry, of course I was speaking of TC when I said explorer.

I often do this, because I'm working so much with TC, that I recognize it as a explorer replacement. So, actually I wanted to say: "Beta 5 works like charm when dragging files into TC."
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2DennisMoore
So, actually I wanted to say: "Beta 5 works like charm when dragging files into TC."
Thanks, that's what I call good news :-)
Post Reply