Edgewall Software
Modify

Opened 14 years ago

Last modified 13 months ago

#9127 new enhancement

Drag and drop attachments

Reported by: kamil@… 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 Carsten Klein <carsten.klein@…>, 14 years ago

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.

comment:2 by Jun Omae <jun66j5@…>, 14 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 Jun Omae <jun66j5@…>, 14 years ago

Cc: jun66j5@… added

comment:4 by Christian Boos, 14 years ago

Component: generalattachment
Keywords: draganddrop added
Milestone: next-major-0.1X
Priority: normallowest
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 Christian Boos, 13 years ago

Keywords: html5 added

comment:6 by sheri@…, 10 years ago

Cc: sheri@… added

comment:7 by Olemis Lang <olemis+trac@…>, 10 years ago

Cc: olemis+trac@… added

comment:8 by mmitar@…, 10 years ago

Cc: mmitar@… added

comment:9 by klein@…, 9 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 anonymous, 8 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 lewis.francis@…, 8 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 walty <walty8@…>, 8 years ago

Cc: walty8@… added

in reply to:  2 ; comment:13 by Ryan J Ollos, 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.

in reply to:  13 comment:14 by Jun Omae, 8 years ago

Cc: Jun Omae added; jun66j5@… 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 Robert Becker <trac.edgewall.org@…>, 7 years ago

Cc: trac.edgewall.org@… added

comment:16 by trac@…, 6 years ago

Pleeease add this feature. It's badly needed…

comment:17 by michela@…, 6 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

comment:18 by Ryan J Ollos, 13 months ago

#13573 closed as a duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.