# Solid-file-client - a library for Solid files & folders

**URL:** <https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465>\
**Category:** App Testing\
**Created:** [November 8, 2018, 6:09pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465 "2018-11-08T18:09:02Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [November 8, 2018, 6:09pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/1 "2018-11-08T18:09:02Z")

</div>

Please test solid-file-client, a simple Javascript library for managing Solid files and folders. This provides a convenience wrapper around solid-auth-client with consistent error handling and coding shortcuts like createFolder(), updateFile(), fetchAndParse(). It works in the browser or in a node/require context, and, for reading, on a node command line. A first version is available at [https://github.com/jeff-zucker/solid-file-client](https://github.com/jeff-zucker/solid-file-client). I would appreciate any and all feedback.

---

<div class="post-metadata">

**Author:** ![happybeing](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/happybeing/32/59_2.png) [@happybeing](https://forum.solidproject.org/u/happybeing)\
**Post date:** [November 8, 2018, 8:04pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/2 "2018-11-08T20:04:32Z")

</div>

I’m not sure when I’ll get a chance to play with this @jeffz but having worked in this area (hooking up file type APIs and backends including LDP in the b browser) for a while now it is great to see, so I am your first star on github. 🙂

---

<div class="post-metadata">

**Author:** ![anon36056958](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon36056958](https://forum.solidproject.org/u/anon36056958)\
**Post date:** [November 9, 2018, 11:57am UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/3 "2018-11-09T11:57:11Z")

</div>

Go Jeffz !! …(posts must be at least 20 characters)

---

<div class="post-metadata">

**Author:** ![jgarrigu](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jgarrigu/32/84_2.png) [@jgarrigu](https://forum.solidproject.org/u/jgarrigu)\
**Post date:** [November 26, 2018, 12:56am UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/4 "2018-11-26T00:56:16Z")

</div>

I believe the limit has been reduced to 10 by the admin.

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [November 28, 2018, 8:26pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/5 "2018-11-28T20:26:44Z")

</div>

Solid-file-client looks very helpfull , i’m using it, trying to make a solside app like with #Polymer [https://github.com/scenaristeur/heroku-spoggy/tree/master/spoggy4/solid-ide](https://github.com/scenaristeur/heroku-spoggy/tree/master/spoggy4/solid-ide)

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [November 28, 2018, 8:31pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/6 "2018-11-28T20:31:21Z")

</div>

Great! I’ll keep an eye on your project.

---

<div class="post-metadata">

**Author:** ![linonetwo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/linonetwo/32/4039_2.png) [@linonetwo](https://forum.solidproject.org/u/linonetwo)\
**Post date:** [December 6, 2018, 10:42am UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/7 "2018-12-06T10:42:45Z")

</div>

Hi, I’ve created some issue on your repo. If you’d like, I can do some refactor for you, so it’s easier to add test to it.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 6, 2018, 4:19pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/8 "2018-12-06T16:19:36Z")

</div>

Thanks much! I’ll look at your suggestions. I really appreciate your work on this.

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [December 7, 2018, 12:50pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/9 "2018-12-07T12:50:34Z")

</div>

Here are my latest Polymer3 tests [GitHub - scenaristeur/spoggy4](https://github.com/scenaristeur/spoggy4)  
reusing @jeffz solside [Solside - a simple IDE and file manager for Solid Data Stores](https://jeff-zucker.github.io/solid-ide/) & solid-file-client  
(Polymer → @anon36056958)

 ![Screenshot_2018-12-07%20Spoggy%20-%20solid](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/1X/305cf8414728c986b9017bfe52eb85b89c220b30.png)

---

<div class="post-metadata">

**Author:** ![anon36056958](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon36056958](https://forum.solidproject.org/u/anon36056958)\
**Post date:** [December 7, 2018, 2:02pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/10 "2018-12-07T14:02:20Z")

</div>

Super fantastic!

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 7, 2018, 5:03pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/11 "2018-12-07T17:03:24Z")

</div>

@samg0 that looks really great! I’m excited to see your work progressing.

---

<div class="post-metadata">

**Author:** ![dredd](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dredd/32/375_2.png) [@dredd](https://forum.solidproject.org/u/dredd)\
**Post date:** [December 8, 2018, 4:10am UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/12 "2018-12-08T04:10:06Z")

</div>

Works great, though for some reason i get actual metadata (filesize, datestamp, explicit urls, …)

edit: Oh, the FolderMenu was blank, so that may have something to do with it.

Anyway, bravo, well done!! @Smag0

 ![Spoggy](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/1X/0584be540c0c707e5c5875f52b5746eada020fe8.jpeg)

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [December 8, 2018, 6:22am UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/13 "2018-12-08T06:22:08Z")

</div>

To not pollute this [Solid-file-client - a library for Solid files & folders](http://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/12) topic,  
everything about Spoggy4 [https://github.com/scenaristeur/spoggy4](https://github.com/scenaristeur/spoggy4) can be discuss in this new [#Spoggy4 topic 🕶] ([Spoggy4 graph easy making and Reading](http://forum.solidproject.org/t/spoggy4-graph-easy-making-and-reading/809))

---

<div class="post-metadata">

**Author:** ![dredd](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/dredd/32/375_2.png) [@dredd](https://forum.solidproject.org/u/dredd)\
**Post date:** [December 15, 2018, 12:00pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/14 "2018-12-15T12:00:07Z")

</div>

@jeffz 1st minor bug issued on GH. 🤠 … (solid-ide)

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [August 10, 2019, 10:12pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/15 "2019-08-10T22:12:35Z")

</div>

@jeffz : I’ve got a question about solid-file-client :  
I use it for my shexy test [Mocha Tests](https://scenaristeur.github.io/spoggy-simple/shexy/mocha_browser/moch.html)

but when a file is created by solid-file-client, I can’t edit it after, compared as when it create it via the data-browser, I can .

I want to create a basicPost.ttl

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/3/3a4e58a5135bf3e40a8f2fea1d30d7851b456968.png)

here is a file basicPost.ttl created by solid-file-client there is no \< / \> source icon as you can see

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/2/2acc21c52bb433f248a43c976b7008cc4d1679a3.png)

then i handmake a new file through data-browser and I copy the “data as N3” , (second icon) into this new file.

when I refresh, this last one has the “source edit icon” : \</\>

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/8/8c91dc306d810bfd8b3ad1943ac81ac7a8ca2c61.png)

but not the first one . Do you know why ?  
is this due to the lib ? the server or may I do something wrong ?

my source is here [spoggy-simple/submit.js at 5f9a20f1baf85c6b39817ca9f1283226cd36e173 · scenaristeur/spoggy-simple · GitHub](https://github.com/scenaristeur/spoggy-simple/blob/5f9a20f1baf85c6b39817ca9f1283226cd36e173/shexy/app/modules/submit.js#L178)

with solid-file-clien-bundle [spoggy-simple/shexy/mocha\_browser/dist at master · scenaristeur/spoggy-simple · GitHub](https://github.com/scenaristeur/spoggy-simple/tree/master/shexy/mocha_browser/dist)

Thxs

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [August 10, 2019, 10:21pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/16 "2019-08-10T22:21:42Z")

</div>

This almost certainly has to do with the change in content-type policy with NSS 5.x. From now on, all file creation commands need to specify a content-type even if the type is text/turtle. So remove the .ttl extension in the file name and put in “text/turtle” as the third parameter to createFile() and it should work. Ping me back if it doesn’t. ^^ @Smag0

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [August 10, 2019, 10:26pm UTC](https://forum.solidproject.org/t/solid-file-client-a-library-for-solid-files-folders/465/17 "2019-08-10T22:26:39Z")

</div>

> [@jeffz](#):
>
> text/turtle

“Plus rapide que l’éclair” !

You are the master , that works !

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/f/f20e8e2097b0a7ddea17ea5419596324b0793f2a.png)

Thanks 🥳👻🤘🏻👍🏻👌🏻🧠🙏🏻🤝🎊🎉
