Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Local upload provider does not create uploads directory #551

Open
@ethanwu10

Description

@ethanwu10

Describe the bug
If the local upload provider's uploadDirectory does not exist, it is not automatically created on startup and causes a WARN-level log from fastify-static complaining that the root does not exist.

To Reproduce
Steps to reproduce the behavior:

  1. Use uploads/local upload provider
  2. Ensure that the uploads directory does not exist
  3. Start rCTF

Expected behavior
No warning is logged, the directory should be created.

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