Skip to content

Document manager file upload error #3746

Description

@everreau

Describe the bug
When a user attempts to upload a file but clicks an upload button that does not correspond to the document field it causes a server error

Janeway version
1.5.0

To Reproduce

  1. Go to document management for any article
  2. Click "Upload File"
  3. Fill in file label
  4. Select a document under "New Manuscript File"
  5. Click the "Upload" button in the "Figure/Data File" section

Expected behavior
Probably this should cause a form error indicating there is no file to upload but also the interface could be changed so there aren't a bunch of different upload buttons.

Front-end Issues

If the issue is front-end specific please add the following details:

Desktop (please complete the following information):

  • MacOS 13.2.1
  • Firefox 118.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething's not working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions