Skip to content

Upload files are not getting deleted.  #519

Open
@varadekd

Description

@varadekd

If an uploaded zip file fails during the scanning phase, we do not remove it from the server storage. This can result in unnecessary space occupation, potentially filling up our server storage.

To reproduce this issue:

  • In your code, ensure that the uploads folder is empty (for easy debugging).
  • Upload a corrupted zip file.
  • You will see an error message in the UI, or if you are checking programmatically.
  • Now, go back to your code and check the upload folder; you will observe the presence of a zip file.

Expectation: This file should be deleted in case of an error since we generate a unique name for the file every time it is uploaded.

Additional Information.

  1. I zipped the gscan code for testing this feature.
  2. Machine information
    1. Machine OS: Ubuntu 22.04 LTS
    2. Node version: v18.18.0
    3. Yarn version: 1.22.21

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