Opened 15 years ago
Last modified 22 months ago
#9127 new enhancement
Drag and drop attachments
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | next-major-releases |
Component: | attachment | Version: | 0.12dev |
Severity: | normal | Keywords: | draganddrop html5 |
Cc: | Jun Omae, sheri@…, olemis+trac@…, mmitar@…, walty8@…, trac.edgewall.org@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal 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 (0)
Change History (18)
comment:1 by , 15 years ago
follow-up: 13 comment:2 by , 15 years ago
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 by , 15 years ago
Cc: | added |
---|
comment:4 by , 14 years ago
Component: | general → attachment |
---|---|
Keywords: | draganddrop added |
Milestone: | → next-major-0.1X |
Priority: | normal → lowest |
Version: | → 0.12dev |
Would be nice to have it one day (dropping into Wiki editor would also directly add the [[Image(
filename)]]
link).
comment:5 by , 14 years ago
Keywords: | html5 added |
---|
comment:6 by , 11 years ago
Cc: | added |
---|
comment:7 by , 11 years ago
Cc: | added |
---|
comment:8 by , 10 years ago
Cc: | added |
---|
comment:9 by , 10 years ago
+1 on drag & drop of attachments. The entire attachment handling is currently extremely 90s. I have a TRAC addiction, but the cumbersome image upload and linking process drives me crazy and is incredibly time consuming. Take a look at Wordpress etc.
comment:10 by , 9 years ago
Yes! The main use case for this in my organization would be for attaching files (typically screengrabs) to tickets — something like what GitHub's Issues system does would be a lifesaver for my shop.
comment:11 by , 9 years ago
Agree, my users have been spoiled by other apps' ability to drag and drop screen grabs onto tickets, which seems quite common now.
comment:12 by , 8 years ago
Cc: | added |
---|
follow-up: 14 comment:13 by , 8 years ago
Replying to Jun Omae <jun66j5@…>:
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.
I suggested to walty that he might try incorporating your plugin into the Trac codebase. Would that be okay with you? Do you think it's stable and good to incorporate?
One caveat is, we might want to wait for the Jinja2 work to be committed to the trunk before adding drag and drop attachments.
comment:14 by , 8 years ago
Cc: | added; removed |
---|
Replying to Ryan J Ollos:
I suggested to walty that he might try incorporating your plugin into the Trac codebase. Would that be okay with you? Do you think it's stable and good to incorporate?
I don't think we should incorporate/port that plugin to core.
- "Description of the file" and "Replace existing attachment of the same name" are unavailable (th:#10383).
- Dirty inserting/modifying DOM.
- A lot of hack for old browsers without support of
FormData
and jQuery 1.4.x (Trac 0.12.x)
I think we should add this feature without incorporating it. It would be simple.
comment:15 by , 8 years ago
Cc: | added |
---|
comment:17 by , 7 years ago
+1 for option to auto embed in comment to default width defined in settings. Single biggest blocker to successful trac take-up IMHO
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.