top | item 1268546

Gmail: Drag and drop attachments onto messages

200 points| niravs | 16 years ago |gmailblog.blogspot.com | reply

55 comments

order
[+] misterbwong|16 years ago|reply
If anyone else is wondering (as i did) how this works, I believe they're using the w3c file api. Details here:

http://dev.w3.org/2006/webapi/FileAPI/

[+] mattparcher|16 years ago|reply
37signals also announced drag and drop file upload today, for their Campfire app (web-based chat), but it supports Safari in addition to Chrome and Firefox (3.5, instead of 3.6 as required by Google): http://productblog.37signals.com/products/2010/04/new-in-cam...

Does anyone have an idea as to how 37signals solved it differently, with more browser support?

[+] anurag|16 years ago|reply
It's great that they're supporting this, but the UI is unintuitive - you can only drag files onto the green box (which is ugly btw) but users will try to drag files onto the message textarea, which won't work. Even changing 'Drag files here' to 'Drag files into this box' will help.
[+] jcnnghm|16 years ago|reply
I don't know, I had to attach files earlier, and it seemed pretty obvious to me. Just checked, and the actual text is "Drop files here".
[+] oliveoil|16 years ago|reply
I like how the screenshots show a typical webbrowsing session: your main browser hidden, only the gmail message compose window visible and neatly sized-down so there's space for the folder window on the left.
[+] thwarted|16 years ago|reply
You know you can hit the little overlaid boxes with the arrow pointing to the upper right in the upper right of the compose screen to "pop-out" the new email composition into another, bare window, right?
[+] slackerIII|16 years ago|reply
Now if only I could paste screenshots in.
[+] natrius|16 years ago|reply
On Linux (Gnome), you can drag and drop from the save dialog in the Take Screenshot app so you never actually have to save it. I just tested it with GMail and it works like a charm.
[+] lunchbox|16 years ago|reply
This would be huge. Outlook 2010 has an Insert > Screenshot feature that easily beats Gmail in convenience.
[+] wizard_2|16 years ago|reply
I've been doing that in firefox and gmail for a long time.
[+] pieter|16 years ago|reply
Might be obvious for everybody, but in Safari, you can drop a file on the 'no file selected' text you get after you press 'attach a file'.
[+] andrewljohnson|16 years ago|reply
I would have probably used this a lot years ago, but now what I yearn for is tab-autocomplete, emacs-style, for attachment fields.

This is a much faster way for me to attach files, and it doesn't frac my wrists making me touch the infernal mouse.

[+] joe_the_user|16 years ago|reply
Drag-and-drop is one of most over-rated features ever:

* It requires excess wrist motion to accomplish some which could be done in few keystrokes.

* Only in a few situation is it ever entirely clear what dragging and dropping will do.

* Outside of, again, a few situations, it is unclear which objects to drag and where to drop them. In anything but file manager, it becomes a frickin' game of Carmen San Diego.

[+] jrockway|16 years ago|reply
Why not just send your email from Emacs then? message-mode is great.
[+] camwest|16 years ago|reply
Yet my girlfriend drags and drops onto Gmail every time before realizing she is making a mistake.
[+] fjabre|16 years ago|reply
Not that I don't applaud the effort but it's kind of awkward/clunky to drag & drop from the desktop to a browser window..
[+] nooneelse|16 years ago|reply
Ummm... why? Why is it more awkward/clunky than with any other set of windows? Also, why so negative? If you don't like it, use the old way; it isn't like they removed that.
[+] spuz|16 years ago|reply
Cool. This was the only feature of Outlook I've missed since starting to use Gmail for work. Now I'm golden :)
[+] augustl|16 years ago|reply
In Firefox 3.6, you can read files with a FileReader. There doesn't seem to be any global FileReader object in 5.0.342.9 beta (Ubuntu). The Gmail file drag and drop works fine, so I'm certain I'm using a supported Chrome version.

Is there any documentation for how the file reading works in Chrome? I would like to implement it in an application of mine that so far only works in Firefox 3.6.

[+] mothaiba|16 years ago|reply
Big woop. I've been doing this forever with the dragdropupload add-on. I do like the insert invitation feature though, and wish there was a better way to easily read through emails, archiving as I go, without being directed back to the inbox.
[+] Shtirlic|16 years ago|reply
Working on Ubuntu Chrome 5.0.342.9 beta
[+] c0un7d0wn|16 years ago|reply
and not working on Ubuntu/10.04 (lucid) Firefox/3.6.3
[+] EvanK|16 years ago|reply
Not working in Firefox 3.6 on mac
[+] dchest|16 years ago|reply
Works with 3.6.3.
[+] proexploit|16 years ago|reply
Sometimes in the past I've forgotten that GMail isn't drag and drop and tried to drag files in. Now it works. I feel as if this feature was developed to personally get me to out myself on my past habits.
[+] grandalf|16 years ago|reply
this has been possible for a long time if the drop target is the input type="file" ... which can be styled to look like something intuitive.

It's funny that this sort of UI is finally coming to the web. I had sort of revamped my whole work flow to avoid it, partially due to using lots of web based apps and partially due to linux.

[+] zsouthboy|16 years ago|reply
The input type="file" way is one file at a time. You can't drag and drop 4 pictures into a file input.
[+] elbac|16 years ago|reply
Doesn't work in chrome on mac
[+] pinhead|16 years ago|reply
Just tried it on mine, works just fine.

10.6.3 with Chrome 5.0.342.9 beta

[+] dchest|16 years ago|reply
Works for me with 5.0.375.6 dev.
[+] elbac|16 years ago|reply
Working now, I had to restart chrome...
[+] unknown|16 years ago|reply

[deleted]

[+] LiveTheDream|16 years ago|reply
plupload by the makers of tinymce (http://www.plupload.com) Allows you to upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms, providing some unique features such as upload progress, image resizing and chunked uploads.

Or uploadify (http://www.uploadify.com)