Skip to content
Discussion options

You must be logged in to vote

Thank you for your interest in Wolpi!

You are absolutely right, this is an error in our documentation.
Wolpi currently does not support slashes in identifiers, even if they are URL-encoded.
In order to load images from nested subdirectories, we recommend using the wolpi-pattern-resolver extension.

For your example, you could configure the extension in the wolpi.yml like this:

http:
  host: 0.0.0.0
  port: 8000

extensions:
  - npm:
      pkg: "wolpi-pattern-resolver"
      version: "0.1.1"
    config:
      resolvingPatterns:
        - pattern: ^(\w+)-(\d+)-(\w+)$
          substitutions:
            - '/app/images/$1/$2/$3.jpg'

You could then access the info.json for your image via http…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ksclarke
Comment options

Answer selected by ksclarke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants