-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @henrituan — I can give you a few answers here. First up, a few questions:
First up, what types of things are you trying to do to your custom response? You may be able to accomplish what you need with Next, have you seen the https://www.npmjs.com/package/payload-plugin-cloud-storage Finally, if you do want to use Payload's Local API to upload files, right now the local This would all need to be done in the following file: If you would like to make a PR to the create operation, please do! Otherwise I think we can get to this shortly as well. Let me know! |
Beta Was this translation helpful? Give feedback.
-
So, is there any solution? I am trying to achieve the same thing. Struggling to upload one or multiple files with custom endpoints since I don't want to use the Media uploader of payload. |
Beta Was this translation helpful? Give feedback.
Hey @henrituan — I can give you a few answers here. First up, a few questions:
First up, what types of things are you trying to do to your custom response? You may be able to accomplish what you need with
afterRead
hooks on a collection but if there's something else that you'd like to modify from our built-in REST responses, which you can't do now, I'd be happy to brainstorm how to expose what you need so you can re-use built-in endpoints. But, if you do indeed want to have a custom RE…