Skip to content

Commit

Permalink
[Fix] S3 File Upload Method Fix (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajou4095 authored Mar 10, 2024
1 parent 2652e7c commit 2f55cb5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import io.ktor.client.request.forms.submitFormWithBinaryData
import io.ktor.client.request.get
import io.ktor.http.Headers
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpMethod
import java.io.File
import javax.inject.Inject

Expand Down Expand Up @@ -58,6 +59,9 @@ class FileApi @Inject constructor(
append(HttpHeaders.ContentDisposition, "filename=$name")
}
)
},
block = {
method = HttpMethod.Put
}
).convert(errorMessageMapper::map)
}
Expand Down

0 comments on commit 2f55cb5

Please sign in to comment.