Skip to content

Uploaded file is wrong type (from previous upload) #139

Description

@rschev

Sometimes when uploading a file, the type of the file is set to the type that was appropriate for the previous upload performed by that user, rather than what is suitable for this folder.

Unfortunately, I don't have the exact steps needed for a reproduction scenario, but I've seen this bug happen often enough that I feel I should document it here.

Incomplete reproduction steps

  1. User navigates to a folder that has allowed types configured to contain exactly 1 value, e.g. acme:commonDocument
  2. User uploads a file, gets prompted with a metadata panel and fills it out. The file is automatically converted to type acme:commonDocument
  3. User navigates to a different folder that does not have allowed types configured
    • The call to uploader-plus/allowed-content-types?destination=… returns { "types" : null }
  4. User uploads a file and is not prompted with a metadata panel

Expected behaviour

The uploaded file is of type cm:content

Observed behaviour

The uploaded file is of type acme:commonDocument

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions