Skip to content

How namingFunction was changed from 2.0.1 to 2.2.1 ? Uploading files does not work. #847

@xet7

Description

@xet7

Hi,
after upgrade, uploading files does not work:

ostrio:files    upgraded from 2.0.1 to 2.2.1

I'm getting this error:

W20220815-14:33:39.476(3)? (STDERR)     at packages/cfs_http-methods.js:631:30
I20220815-14:34:08.920(3)? Exception while invoking method '_FilesCollectionStart_attachments' TypeError: Cannot read property 'replace' of undefined
I20220815-14:34:08.921(3)?     at FilesCollection.namingFunction (models/attachments.js:44:48)
I20220815-14:34:08.921(3)?     at FilesCollection._prepareUpload (packages/ostrio:files/server.js:990:26)
I20220815-14:34:08.921(3)?     at MethodInvocation.FilesCollection._methods.<computed> (packages/ostrio:files/server.js:849:33)
I20220815-14:34:08.922(3)?     at packages/check/match.js:118:15
I20220815-14:34:08.922(3)?     at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)

How this namingFunction should be changed?

https://github.com/wekan/wekan/blob/master/models/attachments.js#L44

WeKan Open Source kanban https://wekan.github.io currently uses Meteor 2.7.3, Node 14.20.0 and MongoDB 5.x. WeKan has features to move attachments from MongoDB to filesystem and back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions