Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Inaccuracy about perms in dat.writeFile doc #14

Open
pfrazee opened this issue Feb 7, 2017 · 2 comments
Open

Inaccuracy about perms in dat.writeFile doc #14

pfrazee opened this issue Feb 7, 2017 · 2 comments
Assignees
Labels

Comments

@pfrazee
Copy link
Member

pfrazee commented Feb 7, 2017

It currently says that only the creating site can write to a dat. That's not true-- other sites can ask permission to write.

@fasiha
Copy link

fasiha commented Feb 7, 2017

Should I be able to test this in Beaker’s DevTools window?

I create two bkr dev archives (two because maybe an archive can’t edit itself?).

In one of them, I open DevTools (Vew->Toggle DevTools), and type in:

dat.writeFile('dat://6fd40d077132bc0d23ba36bbcf55737a8ed87ea187abddb6461bc216351ea6e8/fromcode.txt', 'hi', 'utf8').then(x=>console.log('written!', x))

where that Dat URL is that of the other dev archive I made.

But I get ArchiveNotWritableError {name: "ArchiveNotWritableError", message: ""}. No request in either tab asking for permission.

I will try putting this in JS instead of DevTools.

@pfrazee
Copy link
Member Author

pfrazee commented Feb 7, 2017 via email

@pfrazee pfrazee self-assigned this Feb 14, 2017
@pfrazee pfrazee added the bug label Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants