Code Monkey home page Code Monkey logo

Comments (7)

inmysocks avatar inmysocks commented on June 14, 2024

Are you using the newest version?

On the wikis I am using I can just drag and drop the images into the wiki and they are saved like on the normal nodejs version. Or if you want to use _canonical_uri you can set the filePathRoot in the settings.json

https://github.com/OokTech/TW5-MultiUser/blob/master/Configuration.md

from tw5-bob.

sb3rg avatar sb3rg commented on June 14, 2024

I updated to the newest versions of both TW5 and MultiUserWiki. It looks like with this change the drag and drop feature now imports files.

For the _canonical_uri feature, I couldn't confirm whether it works. Here is what I did.

  1. added "path":"file://milwaukee/project/MASTERS/Data%20Science/ds_imgs" manually to the settings.json.
  2. I restarted the server to make sure settings.json was loaded
  3. I confirmed that "file://milwaukee/project/MASTERS/Data%20Science/ds_imgs" is indeed network accessible via browser.
  4. I created an image tiddler with _canonical_uri set to "path/my_image.png"

It shows this:
image

My guess is that I am not properly accessing the path from settings.json?

from tw5-bob.

inmysocks avatar inmysocks commented on June 14, 2024

Why did you add something called path?

from tw5-bob.

sb3rg avatar sb3rg commented on June 14, 2024

the record has to specifically be named "filePathRoot"? I just gave it an arbitrary name.

from tw5-bob.

inmysocks avatar inmysocks commented on June 14, 2024

The specifics are here.

https://github.com/OokTech/TW5-MultiUser/blob/master/Configuration.md

https://github.com/OokTech/TW5-MultiUser/blob/master/Documentation/Serving%20Files.tid

from tw5-bob.

sb3rg avatar sb3rg commented on June 14, 2024

Got it. Thank you for pointing me to the Serving Files documentation. That helped me understand the importance of using specifically "filePathRoot" as the key in settings.json. Unfortunately, when using
"./file/my_image.png" for my _canonical_uri and setting the tiddler type to ''image/png," It for some reason still does not work,

I attempted to change filePathRoot from:
file://milwaukee/project/MASTERS/Data Science/ds_imgs
to
file:///milwaukee/project/MASTERS/Data Science/ds_imgs

I tried both with backslashes as well restarting the server after each change and none of those worked either

I am satisfied for now with just importing the images directly so you can close this issue, but I'm just letting you know I was never able to get it to work using _canonical_uri =/

Thank you for your help!!

from tw5-bob.

inmysocks avatar inmysocks commented on June 14, 2024

If you just use the file path to the folder like in examples in the documentation instead of the full uri with the scheme it should work fine.

File paths start with / on linux or osx and something like c:/ on windows. uris start with file:///

from tw5-bob.

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.