HostedFiles: Need way to get attachment filenames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned |
Bug Description
bug_attachment objects have a title field, which shows the description (if any) that the user typed in when creating the attachment, however there doesn't appear to be a way to obtain the original file name.
Looking at the attachments for bug 279026 for example, the first attachment is Xorg.0.log.old, but it's been given the title "Xorg log (Crash)".
The titles given to attachments tend to vary widely, since users can type in pretty much whatever they want. The original uploaded filename tends to be a bit more reliable since they (usually) don't rename the files before uploading.
(The principle motivation for having this is so I can evaluate New bugs with attachments, to see whether they've attached the required Xorg.0.log[.old] file, and if not, request that they do so. But I'm sure any tools needing to interact with attachments will like getting the original filename.)
Changed in malone: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
summary: |
- Need way to get attachment filenames + HostedFiles: Need way to get attachment filenames |
tags: | added: patch-tracking |
Changed in launchpad: | |
importance: | Medium → High |
Attached is a workaround. The downside (as noted in the code too) is that the whole attachment must be downloaded to discover the filename, so this bug still ought to be addressed.