File Upload widget needed
Bug #115215 reported by
Brad Crittenden
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Launchpad itself |
Triaged
|
Low
|
Unassigned | ||
Bug Description
In several spots we upload files (bug attachments, product release files, etc) and have to duplicate code to process those files and submit them to the Librarian. A FileUploadWidget that handled a lot of the common tasks would be useful to have.
Here are some thoughts from BjornT:
" 1) Have the widget simply return a FileUpload object
2) Have the widget return a LibraryFileAlias
3) Return a raw byte stream, adding some methods to the widget for
getting the filename and content type.
I think the second option would be best; but it depends on what the
callsites look like."
| Changed in launchpad: | |
| status: | Unconfirmed → Confirmed |
| Changed in launchpad: | |
| importance: | Undecided → Medium |
| tags: | added: tech-debt |
| Changed in launchpad-foundations: | |
| importance: | Medium → Low |
To post a comment you must log in.
Having the FileUploadWidget return a LibraryFileAlias will incur an overhead if the file is rejected.