Ticket #2141 (new enhancement)
Opened 6 years ago
Last modified 11 months ago
Upload more then one attachment at a time
| Reported by: | anonymous | Owned by: | jonas |
|---|---|---|---|
| Priority: | high | Milestone: | next-major-0.1X |
| Component: | attachment | Version: | devel |
| Severity: | normal | Keywords: | attachment jquery |
| Cc: | pkou@…, mmitar@…, ivan@…, ryano@…, thijstriemstra | ||
| Release Notes: | |||
| API Changes: | |||
Description
It would be nice to be able to upload and delete multiple attachments.
Attachments
Change History
comment:1 Changed 6 years ago by anonymous
comment:2 Changed 6 years ago by anonymous
Perhaps in combination with #787, to edit the names of multiple attachments.
comment:3 Changed 5 years ago by mgood
#2406 has been marked as a duplicate.
comment:4 Changed 5 years ago by anonymous
- Keywords pkou@ua.fm added
comment:5 Changed 5 years ago by cboos
- Cc pkou@… added
- Component changed from wiki to general
- Keywords attachment jquery added; pkou@ua.fm removed
- Milestone set to 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.
comment:6 follow-up: ↓ 8 Changed 5 years ago by anonymous
- Priority changed from normal to highest
- Version changed from 0.8.4 to 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 Changed 5 years ago by eblot
- Priority changed from highest to normal
comment:8 in reply to: ↑ 6 Changed 5 years ago by mgood
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.
comment:9 follow-up: ↓ 10 Changed 5 years ago by anonymous
- Component changed from general to 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 in reply to: ↑ 9 Changed 5 years ago by mgood
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.
Changed 4 years ago by slavazanko@…
- Attachment trac.multifile.patch added
Add multifile upload feature
comment:11 Changed 4 years ago by anonymous
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 Changed 4 years ago by cboos
- Milestone changed from 2.0 to 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.
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment miltiFileAttach.r6165.patch added
comment:13 Changed 4 years ago by Slava Zanko <slavaz>
- Version changed from 0.10-stable to 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 Changed 4 years ago by Slava Zanko <slavaz>
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)
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment miltiFileAttach.r6253.patch added
renew patch
comment:15 Changed 4 years ago by Slava Zanko <slavaz>
See #2827 for new patches (multifile attachment patch included into thumbailPreview patch)
comment:16 Changed 4 years ago by osimons
#3176 closed as duplicate.
comment:17 Changed 4 years ago by cboos
#7090 was closed as duplicate.
Changed 4 years ago by anonymous
- Attachment webmail.jpg added
comment:18 Changed 4 years ago by Piotr Kuczynski <piotr.kuczynski@…>
- Component changed from ticket system to attachment
Changed 3 years ago by vnaum@…
- Attachment miltiFileAttach.r7578.patch added
Slava Zanko's multifile attachment patch, updated to r7578
comment:19 Changed 3 years ago by kamil@…
Any chance of getting this feature added to the next release?
comment:20 Changed 3 years ago by mmitar@…
- Cc mmitar@… 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 Changed 3 years ago by bessarabov <ivan@…>
- Cc ivan@… added
comment:22 Changed 3 years ago by Ryan Ollos <ryano@…>
- Cc ryano@… added
Changed 22 months ago by o.shirochenkov@…
- Attachment multiFileAttach.r9435.patch added
This patch is broken
comment:23 Changed 22 months ago by o.shirochenkov@…
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.
comment:24 Changed 22 months ago by o.shirochenkov@…
Is there a way to get multiple-upload attachments with latest trunk?
Changed 20 months ago by support@…
- Attachment 0001-Multi-file-Attachment-Facility.patch added
Working multiple-attachments based on r9099
comment:25 follow-up: ↓ 28 Changed 20 months ago by TJ <support@…>
I've attached a working patch against r9099.
comment:26 follow-up: ↓ 27 Changed 19 months ago by Mitar
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 in reply to: ↑ 26 Changed 14 months ago by thijstriemstra
- Cc thijstriemstra added
- Priority changed from normal to high
Replying to Mitar:
HTML5 supports multiple files to be selected in browser. And modern browser already support this.
+1
comment:28 in reply to: ↑ 25 Changed 12 months ago by o.shirochenkov@…
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 Changed 11 months ago by fernan
Any ETA for having this functionality on a stable release?
Please, please, schedule it for the next release!



Perhaps the "Attachments" header could be a link to a page for managing the attachments? Not sure how to make this simple.