Skip to content

express-fileupload version 2 #383

@richardgirges

Description

@richardgirges
Owner

Starting to think about what v2 of this package should look like.

I only have rough ideas so far, but the high-level themes should be:

  • TypeScript-based
  • Native promise support
  • Reduce sub-dependencies
  • Go back to basics
    • It's a file upload library, not a file naming, file management, file scanning, etc library
    • The package has become too feature-rich. Perhaps we should consider creating a hook-based API; e.g., developers attach their own hooks to execute things like file extension preservation

Open to any other ideas!

cc @RomanBurunkov

Activity

RomanBurunkov

RomanBurunkov commented on May 24, 2025

@RomanBurunkov
Collaborator

Hi @richardgirges

I like ideas you listed.
The only one I thought about is to have ability to upload directly to the fs or object storage without using temporary file.
For some cases that could be quite useful.

So it could an option list which set how to handle upload data, instead of just bool variable for temporary files, like:

  • memory
  • temp
  • direct
  • s3
  • custom - where some hook could leave.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @richardgirges@RomanBurunkov

        Issue actions

          express-fileupload version 2 · Issue #383 · richardgirges/express-fileupload