Ticket #9127 (new enhancement)
Opened 2 years ago
Last modified 13 months ago
Drag and drop attachments
| Reported by: | kamil@… | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | next-major-0.1X |
| Component: | attachment | Version: | 0.12dev |
| Severity: | normal | Keywords: | draganddrop html5 |
| Cc: | jun66j5@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
HTML 5 now supports drag-and-drop of files in to the browser. It would be a killer feature if Trac allowed you to just drag attachments in to a wiki page while editing.
See http://decafbad.com/blog/2009/07/15/html5-drag-and-drop for an example implementation.
This is already being supported by projects such as ReviewBoard? in their upcoming release.
I believe this HTML 5 feature is supported by at least Firefox 3.6 and Chrome, and possibly by Safari as well.
Attachments
Change History
comment:1 Changed 2 years ago by Carsten Klein <carsten.klein@…>
comment:2 Changed 22 months ago by Jun Omae <jun66j5@…>
Hi,
I wrote th:wiki:TracDragDropPlugin that can attach files with drag-and-drop.
This plugin works fine with Firefox 3.6+.
If you can, please try to use this plugin.
comment:3 Changed 22 months ago by Jun Omae <jun66j5@…>
- Cc jun66j5@… added
comment:4 Changed 17 months ago by cboos
- Component changed from general to attachment
- Keywords draganddrop added
- Milestone set to next-major-0.1X
- Priority changed from normal to lowest
- Version set to 0.12dev
Would be nice to have it one day (dropping into Wiki editor would also directly add the [[Image(filename)]] link).
comment:5 Changed 13 months ago by cboos
- Keywords html5 added



I wonder how this affects current security policies on input of type=file.
I know that the value of that input field cannot be set manually, but must be set using the integrated file chooser.
And even uploading content using XMLHttpRequest would not work, since you cannot access the local filesystem.
Looking more closely, it seems that at least FireFox? provides an API to access files in the filesystem, see http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload for more information.