Skip to content

Conversation

@fenos
Copy link
Contributor

@fenos fenos commented Jul 16, 2024

What kind of change does this PR introduce?

Bug fix

What is the new behavior?

  • accept metadata as input for multi-part uploads
  • return object v2 to the GET info request

Additional context

Object V2:

export interface FileObjectV2  {
  id: string
  version: string
  name: string
  bucket_id: string
  updated_at: string
  created_at: string
  last_accessed_at: string
  size?: number
  cache_control?: string
  content_type?: string
  etag?: string
  last_modified?: string
  metadata?: Record<string, any>
}

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9954502141

Details

  • 32 of 34 (94.12%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 79.587%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/storage/backend/file.ts 0 2 0.0%
Totals Coverage Status
Change from base Build 9952847632: -0.02%
Covered Lines: 13195
Relevant Lines: 16421

💛 - Coveralls

@fenos fenos merged commit 556b7f4 into master Jul 16, 2024
@fenos fenos deleted the fix/metadata-input-names branch July 16, 2024 12:44
@github-actions
Copy link

🎉 This PR is included in version 1.8.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants