안녕하세요 서버에 이미지를 보내주려 MultiPart를 사용하려고 합니다.
@Multipart
@POST("profile/picture")
suspend fun postProfile(
@Header("authorization") token: String,
@Part("file") file: MultipartBody.Part?,
):BaseResponse
이런식으로 서비스를 만들어 주었는데
@Part parameters using the MultipartBody.Part must not include a part name in the annotation. (parameter #2)
for method ProfileService.postProfile
이렇게 오류가 떳네요 ㅠㅠ