Skip to content

s3 file adapter filename option issue #4004

@suqian1988

Description

@suqian1988

Steps to reproduce the behavior

in S3 file adapter,
add below code to have customized file name.
but the file name is still random created string

myFile: {
  type: Types.File,
  storage: storage,
  filename: function (item, file) {
    console.log('item.id='+ item._id);
    return encodeURI(item._id + item.name);
  },
},

Expected behavior

we can plugin our own filename

Actual behavior

the file name is random string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions