Skip to content

[Bug] Subdirectory in Assets Not Accessible #2

@dfuentes87

Description

@dfuentes87

Assets allow for subdirectories to be created (https://docs.requarks.io/guide/assets#asset-folders), however "wikijs images" is unable to see or upload to these subdirectories.
For example, if I have 20 assets in the root and 1 in a subdirectory, "wikijs images --limit 50" only lists the 20 assets in the root and even says "ℹ 20 asset(s) found".
Trying to upload to an asset subdirectory errors out with a 400 status (the subdirectory has already been created):

❯ wikijs upload ./Cognosdown.png --folder "/test-dir"
✖ Upload failed
✗ Request failed with status code 400

Additionally, it may be better to rename the command to "assets" instead of "images" since WikiJS assets can be almost anything (any file type; images, documents, zip, etc). It would also be great, if possible, to create asset subdirectories if they do not exist when uploading to them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions