Arlen22 / TiddlyServer

v2 - A static file server that can also save files and mount TiddlyWiki folders
https://arlen22.github.io/tiddlyserver/
MIT License
257 stars 36 forks source link

Creating folders through UI again #113

Closed Iwaslazkis closed 3 years ago

Iwaslazkis commented 3 years ago

Hey there, so I've been having a lot of fun setting up a TiddlyServer for myself (thanks Arlen!) and figuring out how to use it. I saw in issue #94 that there is a way to create new folders and upload files directly through TiddlyServer; and I'd like to do that since uploading files in TW throws me a 413 Too Large Error (even with small files).

the UI options I want

I added the localAddressPermissions object with all of its values set to true like you mentioned there, but I didn't get any option to add folders or upload stuff. Did something change the beta version, or did I do something wrong?

Here's how my bindInfo section looks like in case that helps:

{
    "bindInfo": {
        "bindAddress": ["127.0.0.1"],
        "localAddressPermissions": {
            "*": {
                "datafolder": true,
                "loginlink": true,
                "mkdir": true,
                "putsaver": true,
                "registerNotice": true,
                "transfer": false,
                "upload": true,
                "websockets": true,
                "writeErrors": false
            }
        }
    }
}
Arlen22 commented 3 years ago

You can't add folders to groups, for obvious reasons, so that box will only show up if you're in a folder.

upload enables uploading and mkdir enables creating directories.

Iwaslazkis commented 3 years ago

Oh, I didn't realize a group could be made up of paths from different folders! I thought they were literally a folder. I got it working now, thanks Arlen!