We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bb53fa commit 8fab4a4Copy full SHA for 8fab4a4
1 file changed
appapi/src/main/java/com/digital/app/api/AppFunctions.kt
@@ -425,7 +425,7 @@ fun createRequestPart(value: String): AppRequestBody {
425
)
426
}
427
428
-infix fun String.toRequest(value: String): AppRequestBody = createRequestPart(value)
+infix fun String.toRequest(value: String): Pair<String,AppRequestBody> = Pair(this,createRequestPart(value))
429
// url = file path or whatever suitable URL you want.
430
fun getMimeType(url: String): String? {
431
if (url.isEmpty()) return null
0 commit comments