HeyPuter / puter

🌐 The Internet OS! Free, Open-Source, and Self-Hostable.
https://puter.com
GNU Affero General Public License v3.0
25.44k stars 1.67k forks source link

File Share via Puter Account #790

Open ECHOlinuxWarrior opened 1 week ago

ECHOlinuxWarrior commented 1 week ago

Overview
A feature that allows a user to easily share files from their Puter account to another account by generating a simple public share link.

Key Features

  1. One-Click Sharing:

    • Users should be able to click on a file from their Puter account and instantly generate a shareable link.
    • The process should be seamless and intuitive.
  2. Public Download Link:

    • The share link generated will be public, meaning anyone with the link can download the file.
    • No login or special permissions required for the recipient.
KernelDeimos commented 1 week ago

This is already planned work

recursionbane commented 1 week ago

I have a related request: Can puter.fs.write() and puter.fs.read() support a global boolean option to share common content?

Alternatively, can the public link mentioned above (also) be read programmatically to retrieve the content in-app rather than downloaded as a file?

KernelDeimos commented 1 week ago

I feel (based on vibes, rather than a technical reason I can think of at the moment) that sharing is out of scope of those operations. We should have a separate endpoint which actuates this behavior.