Skip to content

Crash if multiple files have errors.  #335

@greg-hornby-roam

Description

@greg-hornby-roam

For example, if you try to upload 2 files that are both too big, you get a weird uncaught error
TypeError: path must be a string at TypeError (native) at Object.fs.unlink (fs.js:927:11)

And this seems to be because on the first error, it unlinks the uploaded files, and deletes their filepath and other properties, then on the 2nd error, the filepath property does not exist on the uploaded files, and so this weird uncaught error occurs and crashes the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions