From ed5eaa71c2306bd15d8bfbb5163d0e2313bd826e Mon Sep 17 00:00:00 2001 From: Hicham Boushaba Date: Fri, 15 Nov 2024 23:28:31 +0100 Subject: [PATCH] Use correct argument name for the media type --- .../fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt index a20cabfb3a..fb1ef8c080 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt @@ -216,7 +216,7 @@ abstract class BaseWPV2MediaRestClient constructor( params["offset"] = offset.toString() } if (mimeType != null) { - params["mime_type"] = mimeType.value + params["media_type"] = mimeType.value } val response = executeGetGsonRequest( site,