Skip to content

Commit

Permalink
update acess modifire for File struct
Browse files Browse the repository at this point in the history
  • Loading branch information
satishbabariya committed May 25, 2021
1 parent ffa9d03 commit d1185a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/SupabaseStorage/MultipartFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ public struct File: Hashable, Equatable {
public var data: Data
public var fileName: String?
public var contentType: String?

public init(name: String, data: Data, fileName: String?, contentType: String?) {
self.name = name
self.data = data
self.fileName = fileName
self.contentType = contentType
}
}

public class FormData {
Expand Down
1 change: 1 addition & 0 deletions Tests/SupabaseStorageTests/SupabaseStorageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ final class SupabaseStorageTests: XCTestCase {

static var allTests = [
("testListBuckets", testListBuckets),
("testUploadFile", testUploadFile),
]
}

0 comments on commit d1185a3

Please sign in to comment.