Skip to content

skipper-gridfs isn't storing chunks with node v14 #40

@jmelich

Description

@jmelich

After upgrade node to v14 seems right given whenDone() is triggered with NO errors and printing uploaded file callback variable values seems normal even have a file descriptor id. The problem comes when I try to download the uploaded file, it's metadata exists but file itself no, and navigator downloads an empty file of 17kb always mantaining original file name.

Problem comes since I upgraded node to v14 from v12 for an Angular 9 app compatibility(now I'm considering to dockerize to avoid this situation, but I need to fix file uploading until it). The situation is I can download with success uploaded files when node was v12, but not uploaded files with v14. When I try to get a file the error is the following:
Error: FileNotFound: file 6a5a6cda-8669-4af1-8b74-c13ecc5ed178.png was not found

I tried all skipper-gridfs versions in combination with node v14 and the same is happening.

Node version: v14.4.0

package.json have the following:

    "sails-mongo": "^1.2.0",
    "sails-mysql": "1.0.1",
    "skipper": "^0.9.0-4",
    "skipper-gridfs": "^1.0.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions