Skip to content

Commit

Permalink
[Fix] S3 File Upload Method Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajou4095 committed Mar 7, 2024
1 parent 2652e7c commit e313418
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 e313418

Please sign in to comment.