Skip to content

[BUG] Files are stored as directories instead of files in MinIO storage #25

Description

@Yoo-SH

Bug Description

When uploading files to MinIO storage, files are not stored properly and instead are stored as directories, making the actual file content inaccessible.

Steps to Reproduce

  1. Execute file upload from OpenContext Admin UI
  2. Select a PDF, Markdown, or text file
  3. Click upload button
  4. Check MinIO storage - file is stored as a directory instead of a file

Expected Behavior

Files should be stored normally in MinIO and file content should be downloadable.

Actual Behavior

Files are stored as directories, preventing access to actual file content.

Environment

  • OS: Windows 10.0.26100
  • Backend: Spring Boot (Java)
  • Storage: MinIO
  • Database: PostgreSQL

Additional Context

Image

Related Files:

  • core/src/main/java/com/opencontext/service/FileStorageService.java
  • docker-compose.yml (MinIO configuration)
  • core/src/main/resources/application.yml (MinIO configuration)

Metadata

Metadata

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