supabase / storage

S3 compatible object storage service that stores metadata in Postgres
https://supabase.com/docs/guides/storage
Apache License 2.0
806 stars 115 forks source link

`move`, `copy` do not returning new file id #438

Closed bombillazo closed 6 months ago

bombillazo commented 9 months ago

Bug report

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:

  1. Create a file
  2. Use the object/move endpoint to move a file
  3. 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

bombillazo commented 9 months ago

This would not be needed if #359 is fixed

fenos commented 7 months ago

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

fenos commented 7 months ago

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

fenos commented 6 months ago

This is now being supported