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

feat: add custom-metadata to upload #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silentworks
Copy link
Collaborator

@silentworks silentworks commented Dec 25, 2024

What kind of change does this PR introduce?

  • Add custom metadata on upload
  • Fix warnings tests were giving with pytest-asyncio

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Custom Metadata

Adds support for custom metadata on objects:

storage.from_(bucketName).upload(uploadPath, file, {
        "metadata": {
          "custom": "metadata",
          "second": "second",
          "third": "third",
        },
})

Additional context

Relates to supabase/storage#439
#295
supabase/storage-js#207

@silentworks silentworks requested review from grdsdev and J0 December 25, 2024 16:41
@silentworks silentworks linked an issue Dec 25, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for custom metadata, new info and exists method
1 participant