jeff-zucker/solid-file-client

postFile infinite loop

scenaristeur opened this issue · 2 comments

Ola it's another time me & myself.

  • "solid-file-client": "^1.2.2",

I encounterd a infinite loop using postFile()
Try to catch error to display a notification, i gave volontarily postFile a wrong url and felt in an infinite loop

sfc postFile

whereas a createFile throw me an error without infinite loop

sfc createfile

Is there something wrong with postFile ?

CreateFile() is using putFile() to is directectly using a PUT
postFile() uses POST this imply it must create intermediate directories. To do that it is using createFolder()

  • Can you try to use postFile() with the option createPath = false, postFile() will not call createFolder()
  • do you have the same problem using solid-file-client v1.2.0 ?

I'm unable to reproduce any problem with postFile() checked tests, checked with creating files in root or any other folder and everything seems OK.