Once a file has been uploaded, it should be possible to link to it again
Categories
(Thunderbird :: FileLink, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file, 6 obsolete files)
42.35 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
If you wanted to send the same file to two different people in separate emails, it should be possible to "reuse" an upload that's already happened. This should be fairly simple for files uploaded in the same session, because we remember that information in a map (see ext-cloudFile.js
). For files that have been uploaded in previous sessions, we'd need to improve the API and implement stuff in the extensions.
Assignee | ||
Comment 1•6 years ago
|
||
I hate this defect/enhancement/task thing.
Assignee | ||
Comment 2•6 years ago
|
||
I haven't written any tests for this yet, or checked the existing ones, but it does work.
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Better.
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
I'm taking this one back to the drawing board, as there's a number of things that need more thinking about.
Assignee | ||
Comment 8•6 years ago
|
||
Now without a few fatal flaws.
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Actually seems I get this clicking around (not sure exactly when):
An error occurred updating the cmd_convertCloud command: [Exception... "[JavaScript Error: "item.cloudFileUpload is undefined" {file: "chrome://messenger/content/messengercompose/MsgComposeCommands.js" line: 1112}]'[JavaScript Error: "item.cloudFileUpload is undefined" {file: "chrome://messenger/content/messengercompose/MsgComposeCommands.js" line: 1112}]' when calling method: [nsIController::isCommandEnabled]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://global/content/globalOverlay.js :: goUpdateCommand :: line 67" data: yes] globalOverlay.js:71
goUpdateCommand chrome://global/content/globalOverlay.js:71
updateAttachmentItems chrome://messenger/content/messengercompose/MsgComposeCommands.js:1411
onpopupshowing chrome://messenger/content/messengercompose/messengercompose.xul:1
Assignee | ||
Comment 11•6 years ago
|
||
How about if I add the ellipsis that these menu items should've always had? I think that makes the distinction reasonably clear.
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
This should be fine, but here's a Try run anyway:
Assignee | ||
Comment 15•6 years ago
|
||
Gah, I knew I had to fix that test, too…
Comment 16•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/1ab5b794ee03
Add UI to reuse CloudFile uploads from the current session. r=mkmelin
Updated•6 years ago
|
Description
•