Skip to content

[Bug] Users should not be able to upload files or directories when viewing a single file object #433

Description

@tylere

Description of Bug:

Uploading a file while viewing an object changes the object into a directory. At least that is what seems to happen... prefixes are weird.

Steps to Reproduce:

  1. Create a product
  2. Upload a text file (README.md or similar)
  3. View the file contents (e.g. https://source.coop/tyler/test-files/README.md)
  4. Enter "Edit Mode" -> "Upload files"
  5. Note that nothing changes on the screen
  6. Navigate up one level. Note that the file now appears as a directory (i.e. there is a caret ">" beside the file)

Expected Behavior:

The interface should switch to "Read Only" mode when viewing the object's page. The "Upload file" or "Upload directory" options should not appear.

Actual Behavior:

The files appear to upload successfully (i.e. no error) but I don't see how to navigate to the file (or delete them).

Screenshots:

Image Image

Additional Context:

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