gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
14.28k stars 942 forks source link

Feature Request: support saving to s3 (or s3 compatible) #1487

Open fifofefe opened 3 days ago

fifofefe commented 3 days ago

Is your feature request related to a problem? Please describe. No, ideally it would just be another entry in the "Destination" menu.

Describe the solution you'd like I would like to upload the html file to a S3 bucket or other object storages. Ideally I would give to the extension a URL, a bucket name, the necessary auth tokens and the extension would upload the file to the bucket.

Additional context (optional) I do not have direct experience in this type of functionality, so I am not sure whether this is a plausible feature to implement...

gildas-lormeau commented 3 days ago

I agree this would be useful. From a technical point of view, it's not as simple as the other destinations, but it can be done. This is because SingleFile would have to send a "presigned request".

For the record, this is documented here: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html. There are also a few (pure) JavaScript implementations, for example: