Files: shared link should include filename #1346
Labels
exp/novice
Someone with a little familiarity can pick up
topic/design-front-end
Front-end implementation of UX/UI work
topic/design-ux
UX strategy, research, not solely visual design
Motivation
"Share" feature returns a direct CID link to file at gateway, which means filename is lost:
The link provided for copying is for RAW CID:
https://ipfs.io/ipfs/QmZm53emWPQGQivin6GGT24E2xvzqd56444W881sa7pjqu
:Fix
One way is to create a wrapping directory, and embedd filename in it, however a more efficient way is to take advantage of
?filename=
parameter supported by go-ipfs and js-ipfs:https://ipfs.io/ipfs/QmZm53emWPQGQivin6GGT24E2xvzqd56444W881sa7pjqu?filename=name-from-webui.png
This does not produce any overhead, and persists filename in browser history and if user decides to save it to disk.
(Just make sure unicode string is url-escaped)
The text was updated successfully, but these errors were encountered: