[API] The /api/files endpoint rejects the createdAfter query parameter · Issue #22 · cloudillo/cloudillo · GitHub
Skip to content

[API] The /api/files endpoint rejects the createdAfter query parameter #22

Open

Description

@jud512

Description

When calling the /api/files endpoint with the createdAfter query parameter, the API returns an error because the parameter is not recognized.

Steps to reproduce

Request:
GET /api/files?contentType=image/*&tag=cover&sort=recent&sortDir=desc&createdAfter=2026-10-14T22:00:00.000Z&limit=20
Error response:
Failed to deserialize query string: createdAfter: unknown field createdAfter,
expected one of limit, cursor, fileId, parentId, notParentId,
rootId, tag, preset, variant, status, fileTp, contentType,
includeFolders, fileName, ownerIdTag, notOwnerIdTag, localOnly,
pinned, starred, hidden, sort, sortDir, channel, withParent,
withPath

Expected behavior

The API should support filtering files by their creation date using the createdAfter query parameter, allowing clients to retrieve only files created after a specified timestamp.

Actual behavior

The API rejects the request because createdAfter is not a recognized query parameter.

Browser / Environment

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions