Edgewall Software

Ticket #2141 (new enhancement)

Opened 4 years ago

Last modified 5 weeks ago

Upload more then one attachment at a time

Reported by: anonymous Owned by: jonas
Priority: normal Milestone: 0.13
Component: attachment Version: devel
Severity: normal Keywords: attachment jquery
Cc: pkou@…, mmitar@…

Description

It would be nice to be able to upload and delete multiple attachments.

Attachments

trac.multifile.patch Download (8.2 KB) - added by slavazanko@… 21 months ago.
Add multifile upload feature
miltiFileAttach.r6165.patch Download (7.1 KB) - added by Slava Zanko <slavaz> 20 months ago.
miltiFileAttach.r6253.patch Download (7.1 KB) - added by Slava Zanko <slavaz> 19 months ago.
renew patch
webmail.jpg Download (46.1 KB) - added by anonymous 14 months ago.
miltiFileAttach.r7578.patch Download (7.8 KB) - added by vnaum@… 9 months ago.
Slava Zanko's multifile attachment patch, updated to r7578

Change History

  Changed 4 years ago by anonymous

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

  Changed 4 years ago by anonymous

Perhaps in combination with #787, to edit the names of multiple attachments.

  Changed 3 years ago by mgood

#2406 has been marked as a duplicate.

  Changed 3 years ago by anonymous

  • keywords pkou@ua.fm added

  Changed 2 years ago by cboos

  • cc pkou@… added
  • keywords attachment jquery added; pkou@ua.fm removed
  • component changed from wiki to general
  • 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.

follow-up: ↓ 8   Changed 2 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.

  Changed 2 years ago by eblot

  • priority changed from highest to normal

in reply to: ↑ 6   Changed 2 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.

follow-up: ↓ 10   Changed 2 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!)

in reply to: ↑ 9   Changed 2 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 21 months ago by slavazanko@…

Add multifile upload feature

  Changed 21 months 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.

  Changed 20 months 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 20 months ago by Slava Zanko <slavaz>

  Changed 20 months 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

  Changed 20 months 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 19 months ago by Slava Zanko <slavaz>

renew patch

  Changed 19 months ago by Slava Zanko <slavaz>

See #2827 for new patches (multifile attachment patch included into thumbailPreview patch)

  Changed 17 months ago by osimons

#3176 closed as duplicate.

  Changed 15 months ago by cboos

#7090 was closed as duplicate.

Changed 14 months ago by anonymous

  Changed 13 months ago by Piotr Kuczynski <piotr.kuczynski@…>

  • component changed from ticket system to attachment

Changed 9 months ago by vnaum@…

Slava Zanko's multifile attachment patch, updated to r7578

  Changed 5 months ago by kamil@…

Any chance of getting this feature added to the next release?

  Changed 5 weeks 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.)

Add/Change #2141 (Upload more then one attachment at a time)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.