Opened 19 years ago
Last modified 9 years ago
#2141 new enhancement
Upload more than one attachment at a time
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | attachment | Version: | devel |
Severity: | normal | Keywords: | attachment jquery |
Cc: | pkou@…, mmitar@…, ivan@…, Thijs Triemstra, ethan.jucovy@…, olemis+trac@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be nice to be able to upload and delete multiple attachments.
Attachments (7)
Change History (43)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Perhaps in combination with #787, to edit the names of multiple attachments.
comment:4 by , 18 years ago
Keywords: | pkou@ua.fm added |
---|
comment:5 by , 18 years ago
Cc: | added |
---|---|
Component: | wiki → general |
Keywords: | attachment jquery added; pkou@ua.fm removed |
Milestone: | → 2.0 |
That could probably be done with some bits of Javascripts → the base "Add Attachment" page would still propose one attachment to be added, the javascript enhanced one would have an "Add another attachment" button which will insert a new set of fields in the form.
follow-up: 8 comment:6 by , 18 years ago
Priority: | normal → highest |
---|---|
Version: | 0.8.4 → 0.10-stable |
Why can't it function like a multiple file select option - as in photoshop? (file>open>control+click on the files) - it allows you to select more than one file. I'm SURE this would be a benefit for all users.
comment:7 by , 18 years ago
Priority: | highest → normal |
---|
comment:8 by , 18 years ago
Replying to anonymous:
Why can't it function like a multiple file select option - as in photoshop? (file>open>control+click on the files) - it allows you to select more than one file.
Because the HTML file input field does not support that.
follow-up: 10 comment:9 by , 17 years ago
Component: | general → ticket system |
---|
How about modifying it so that it will? (I don't have a clue how to, or I would have done it already!)
comment:10 by , 17 years ago
Replying to anonymous:
How about modifying it so that it will? (I don't have a clue how to, or I would have done it already!)
I can't. Doing this would require changing the HTML spec and all the web browsers to support this. It's not something that can be done by Trac.
comment:11 by , 17 years ago
My patch not fully tested (not tested on: IE lesser than 5.0, Opera lesser than 8.5, Firefox lesser that 1.5). Enjoy.
comment:12 by , 17 years ago
Milestone: | 2.0 → 0.12 |
---|
#6361 has an patch updated for trunk@6164, but newer version will be posted here, until this gets eventually integrated in 0.12.
by , 17 years ago
Attachment: | miltiFileAttach.r6165.patch added |
---|
comment:13 by , 17 years ago
Version: | 0.10-stable → devel |
---|
More correct patch (for r6165)
However please consider using jQuery for the Javascript parts
I do not know fully jQuery (today began to study:)). JQuery used according to their knowledge:)
and take care to not introduce spurious changes in the .py files.
fixed
comment:14 by , 17 years ago
r6169: patch functional.
Perhaps it would be better to issue a new patch as soon as the latest revision(s) would make it inoperable (change files trac/attachment.py; trac/templates/attachment.html; trac/htdocs/js/trac.js)
comment:15 by , 17 years ago
See #2827 for new patches (multifile attachment patch included into thumbailPreview patch)
by , 17 years ago
Attachment: | webmail.jpg added |
---|
comment:18 by , 17 years ago
Component: | ticket system → attachment |
---|
by , 16 years ago
Attachment: | miltiFileAttach.r7578.patch added |
---|
Slava Zanko's multifile attachment patch, updated to r7578
comment:20 by , 16 years ago
Cc: | added |
---|
Maybe this could be solved by additional option of unpacking compressed file and adding its content as attachments. So we could have an option "add file's content as attachments" or something similar and if an user checks this then Trac tries to unpack it and add all files. (It would probably require also another option for limiting max compressed file size uploaded in this manner and max number of files added.)
comment:21 by , 15 years ago
Cc: | added |
---|
comment:22 by , 15 years ago
Cc: | added |
---|
comment:23 by , 15 years ago
Hi, All.
I've tried to fix attachment:miltiFileAttach.r7578.patch as r7578 for r9435.
I'm using this patches for the first time.
After fixing some tabs to spaces and solving some conflicts I got attachment:multiFileAttach.r9435.patch, but this is not working. I'm sure that I there is no mistake, I think, that there were some serious changes from r7578 to r9435, so the patch must be corrected.
Please, help me to fix this! I don't know python.
It would be great to see this feature from the box.
Error
AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option trac.default_handler in trac.ini.
While doing a GET operation on /
, Trac issued an internal error.
User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6 YB/4.3.0
System Information
Trac | 0.12dev-r9435
|
Babel | 1.0dev-r488
|
Docutils | 0.5
|
Genshi | 0.6dev-r1092
|
mod_python | 3.3.1
|
Pygments | 1.2.2
|
pysqlite | 2.4.1
|
Python | 2.5.2 (r252:60911, Jan 24 2010, 15:24:24) [GCC 4.3.2]
|
pytz | 2008c
|
setuptools | 0.6c11
|
SQLite | 3.5.9
|
Subversion | 1.5.1 (r32289)
|
jQuery | 1.4.2
|
Enabled Plugins
AnnouncerPlugin | 0.12
|
TracFlashEmbedMacro | N/A
|
UserStats | Rev
|
Python Traceback
Traceback (most recent call last): File "build/bdist.linux-i686/egg/trac/web/main.py", line 514, in _dispatch_request dispatcher.dispatch(req) File "build/bdist.linux-i686/egg/trac/web/main.py", line 196, in dispatch chosen_handler = self.default_handler File "build/bdist.linux-i686/egg/trac/config.py", line 631, in __get__ self.section, self.name)) AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option trac.default_handler in trac.ini.
by , 15 years ago
Attachment: | 0001-Multi-file-Attachment-Facility.patch added |
---|
Working multiple-attachments based on r9099
follow-up: 27 comment:26 by , 14 years ago
HTML5 supports multiple files to be selected in browser. And modern browser already support this.
HTML5 also supports drag&drop so it is even easier to attach files.
There exists many proof of concept implementations on the web. Also for jQuery. Would it be possible to add this to Trac?
comment:27 by , 14 years ago
Cc: | added |
---|---|
Priority: | normal → high |
Replying to Mitar:
HTML5 supports multiple files to be selected in browser. And modern browser already support this.
+1
comment:28 by , 14 years ago
Replying to TJ <support@…>:
I've attached a working patch against r9099.
Thank you, TJ, that's great! Works for me like a charm.
comment:29 by , 14 years ago
Any ETA for having this functionality on a stable release?
Please, please, schedule it for the next release!
follow-up: 33 comment:30 by , 11 years ago
I was thinking that this is probably doable through a Trac plugin. Plugin makes:
- form area for attaching one file currently provided by Trac into a drag&drop area for dropping files
- when a user drops files there, plugin submits all the files over Ajax over the same form which is displayed
comment:31 by , 11 years ago
Cc: | removed |
---|
comment:32 by , 11 years ago
Cc: | added |
---|
follow-up: 34 comment:33 by , 11 years ago
Cc: | added |
---|
Replying to Mitar:
I was thinking that this is probably doable through a Trac plugin. Plugin makes:
- form area for attaching one file currently provided by Trac into a drag&drop area for dropping files
- when a user drops files there, plugin submits all the files over Ajax over the same form which is displayed
jftr , zurb theme implements this feature by adapting the solution proposed in bh:ticket:195 .
comment:34 by , 11 years ago
Replying to Olemis Lang <olemis+trac@…>:
Replying to Mitar:
I was thinking that this is probably doable through a Trac plugin. Plugin makes:
- form area for attaching one file currently provided by Trac into a drag&drop area for dropping files
- when a user drops files there, plugin submits all the files over Ajax over the same form which is displayed
jftr , zurb theme implements this feature by adapting the solution proposed in bh:ticket:195 .
Also related to #9127 and th:TracDragDropPlugin.
comment:35 by , 10 years ago
Owner: | removed |
---|
comment:36 by , 9 years ago
Priority: | high → normal |
---|---|
Summary: | Upload more then one attachment at a time → Upload more than one attachment at a time |
Typo. Lowered priority to reflect that workarounds are available.
Perhaps the "Attachments" header could be a link to a page for managing the attachments? Not sure how to make this simple.