Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Dynamic path  #43

@IbrahimTareq

Description

@IbrahimTareq

I'm trying to assign unique paths for each object that's saved. Is there a way we can assign a dynamic path (perhaps based on the id of the object via callback) and then save that?

cover_image: {
      label: "Cover Image",
      type: Types.File,
      storage: s3Storage(returnsId),
      filename: function (item, file) {
          return encodeURI(item._id + '-' + item.name);
      }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions