Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - When uploading, include record information #477

Open
huinalam opened this issue Oct 20, 2024 · 0 comments
Open

[FEATURE] - When uploading, include record information #477

huinalam opened this issue Oct 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@huinalam
Copy link
Contributor

Summary

When uploading, include record information, such as the resource ID.
This is because it can be utilized to generate a URL when uploading a file.

Basic Example

upload: async (buffer, infos, context) => {
  console.log(context.resourceId);
  return "https://raw.githubusercontent.com/premieroctet/next-admin/33fcd755a34f1ec5ad53ca8e293029528af814ca/apps/example/public/assets/logo.svg";
},

Drawbacks

No response

Unresolved questions

No response

@huinalam huinalam added the enhancement New feature or request label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant