Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rschev opened this issue Jun 3, 2019 · 2 comments
Open

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

rschev opened this issue Jun 3, 2019 · 2 comments

Comments

@rschev
Copy link

rschev commented Jun 3, 2019

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

@yregaieg
Copy link
Collaborator

yregaieg commented Jun 3, 2019 via email

@gb-123-git
Copy link

I think this also might be related to #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants