Modify

Opened 10 years ago

Last modified 5 years ago

#12107 new enhancement

Update file via trac-admin

Reported by: roger.oberholtzer@… Owned by:
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords: update
Cc: Trac Release: 1.0

Description

The trac-admin 'download' command supports the following:

  • download add - Add new download
  • download list - Show uploaded downloads
  • download remove - Remove uploaded download

I would like to update files that already exist. I guess I could remove it and add it again. The disadvantage is that the various properties that have been applied would need to be maintained (list/parse and then use in the add). The list command does not really offer something that is easy to parse as there are no field delimiters.

It would be great if there was a download update command. If it takes the name of the file or the ID is not important (to me at least). I guess the ID would be best as a file with the same name could exist more than once. It should maintain all existing information, except the file size and the uploaded date.

Attachments (0)

Change History (2)

comment:1 in reply to:  description Changed 9 years ago by Ryan J Ollos

Replying to roger.oberholtzer@…:

It would be great if there was a download update command. If it takes the name of the file or the ID is not important (to me at least). I guess the ID would be best as a file with the same name could exist more than once. It should maintain all existing information, except the file size and the uploaded date.

Or we can just extend the add command to allow an id parameter, which would force an overwrite.

It would also be good to support adding, listing and removing files through the xml-rpc interface.

comment:2 Changed 5 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.