storage
storage copied to clipboard
`move`, `copy` do not returning new file id
Bug report
- [x] I confirm this is a bug with Supabase, not with my own application.
- [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
When we use the move
endpoint, we do not get the new id of the file.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a file
- Use the
object/move
endpoint to move a file - response is only
{ message: "Successfully moved" }
Expected behavior
We expect to get the new file id so we can match the file internally to our relations.
System information
- Version of supabase-js: 2.39.3
- Storage version: v0.48.1
This would not be needed if #359 is fixed
This is now fixed, move will not create a new id. However, the copy command will still need to create a new object since it is a brand new object
Also added support for returning the ID on move / copy operation on this PR #444 Note: keep in mind that this fix is not yet release to the Hosted version of Supabase, will be released soon next week
This is now being supported