Giter VIP home page Giter VIP logo

Comments (4)

jazelly avatar jazelly commented on August 18, 2024

After digging around, I found it's not related to the quotation mark, as it's quite common in other documents and they can be correctly saved

from anything-llm.

timothycarambat avatar timothycarambat commented on August 18, 2024

E:\github\my\anything-llm\server\storage\documents\XXXX\2021-09-15-"Tested"-Retrospective-bf2937a8-15bc-4da9-9b1b-efce42d892e4.json is less than the MAX_PATH for Windows, which would be the other non-obvious issue that could block a file write aside from disk space and permissioning

from anything-llm.

timothycarambat avatar timothycarambat commented on August 18, 2024

Out of curiosity, double quotes are prohibited chars in file name. Does removing them from the Confluence document title allow the file to save? I know you say others are allowed, but I'm wondering if they are encoded differently or something

from anything-llm.

jazelly avatar jazelly commented on August 18, 2024

double quotes are prohibited chars in file name.

I think the quotation is indeed the culprit.

Does removing them from the Confluence document title allow the file to save?

yes, if simply removing the quotation marks, it will work, but I discovered another problem. see below

I know you say others are allowed

The reason why I said other files were successfully saved was I had a file called My Dashboard : manage "Admin" access and it got saved but the saved filename is incomplete like My-Dashboard-. The content is also empty.

The reason is that :. It's treated as part of the drive notation in Windows, but it works fine in MacOS IIRC.

Generally, I think the filename should be sanitized before passing to writeFileSync. I can raise a PR for this

from anything-llm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.