Skip to content

Error when uploading files from a directory.... #25

@RobertLRead

Description

@RobertLRead

I don't remember how this is supposed to work, but it seems that when I upload files from the "upload" directory, we get the error below. In general we want people to be able to upload photos without getting an error like this.

My file
file.path
UnkonwnElizaSpring.JPG
file.path
Error: child failed: path argument was an invalid path = "/apps/abc/tags/uploads/UnkonwnElizaSpring.JPG". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"
    at validatePathString (/Users/robertread/PubInv/pjournal/node_modules/@firebase/database/dist/index.node.cjs.js:11130:15)
    at validateRootPathString (/Users/robertread/PubInv/pjournal/node_modules/@firebase/database/dist/index.node.cjs.js:11142:5)
    at child (/Users/robertread/PubInv/pjournal/node_modules/@firebase/database/dist/index.node.cjs.js:13102:9)
    at ref (/Users/robertread/PubInv/pjournal/node_modules/@firebase/database/dist/index.node.cjs.js:13052:33)
    at Database.ref (/Users/robertread/PubInv/pjournal/node_modules/@firebase/database/dist/index.node.cjs.js:15113:28)
    at writeTagIntoDB (/Users/robertread/PubInv/pjournal/server.js:114:6)
    at /Users/robertread/PubInv/pjournal/server.js:204:5
    at Layer.handle [as handle_request] (/Users/robertread/PubInv/pjournal/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/robertread/PubInv/pjournal/node_modules/express/lib/router/route.js:137:13)
    at Immediate._onImmediate (/Users/robertread/PubInv/pjournal/node_modules/multer/lib/make-middleware.js:53:37)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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