ts-odd icon indicating copy to clipboard operation
ts-odd copied to clipboard

Add a helper to generate file URLs

Open walkah opened this issue 4 years ago • 2 comments

Right now, people have to generate permalink URLs "By hand" ( a la ipfs.runfission.com/ipfs/${cid}/${filename} ) which isn't impossible, but could be easier. We should also ideally have two versions:

  1. Generate a link to a specific CID (this will be "frozen" in time )
  2. A version that tracks the current version of a given file.

walkah avatar Mar 08 '21 17:03 walkah

For reference, we're likely moving to files.runfission.com and could also do per-user links like boris.files.runfission.com/p/Screenshots/some-screenshot.png

This may need more certificates? Putting this note here as reference :)

bmann avatar Mar 08 '21 18:03 bmann

We've got a demo app for the different kinds of file paths: https://benevolent-senior-pink-yeti.fission.app/

Also, we've had a talk post that's related to this issue: https://talk.fission.codes/t/linking-to-public-files/1716

And, I think we should include something like this function: https://github.com/fission-suite/dashboard/blob/8ef6e7031b8f6f20f2927e7e6c16349d9ba24ec9/src/Javascript/index.js#L334-L339

matheus23 avatar Apr 09 '21 15:04 matheus23

Implemented on next branch.

icidasset avatar Aug 21 '23 18:08 icidasset