Closed Bug 738079 Opened 12 years ago Closed 12 years ago

FileLink: Provide a method to get the filename from the URL

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Fallen, Unassigned)

References

Details

I know Thunderbird handles this differently by setting the attachment filename, but for Calendar it would be marvelous if we didn't need to do this. As far as I know there is no standardized way to set the filename for an attachment to a calendar item.

What I can do is set an X-Param, like

ATTACH;X-MOZ-CLOUD-FILENAME=08sim.pdf:http://db.tt/FUsxqHrR

but I would much rather be able to get the filename by asking the cloud service.
OS: Mac OS X → All
Hardware: x86 → All
Alternatively, if there is a way to get a long URI that contains the filename, i.e http://dropbox.com/u/123123123123/08sim.pdf or such, that would work for me too.
There's not a general way - the cloud providers give us a link to a web page, generally, not a link to the file that you can use to download the file, or get information about it.
But usually there was at one point an original filename. I know Dropbox provides this when you do a HEAD request on the file, but then again I don't want the cloud service to need to do a head request each time we show a file attachment.

I guess I'll just go with setting the initial filename via an x-prop, which might cause confusion if the file is renamed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.