File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/org/cssnr/zipline/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ class ServerApi(private val context: Context, url: String? = null) {
153153 part,
154154 format,
155155 originalName,
156- uploadOptions.compression,
156+ uploadOptions.compression?. takeIf { it != 0 } ,
157157 uploadOptions.deletesAt,
158158 uploadOptions.folderId,
159159 uploadOptions.password,
@@ -603,7 +603,7 @@ class ServerApi(private val context: Context, url: String? = null) {
603603 @Part file : MultipartBody .Part ,
604604 @Header(" x-zipline-format" ) format : String ,
605605 @Header(" x-zipline-original-name" ) originalName : Boolean = true,
606- @Header(" x-zipline-image-compression-percent" ) compression : Int? = 100 ,
606+ @Header(" x-zipline-image-compression-percent" ) compression : Int? = null ,
607607 @Header(" x-zipline-deletes-at" ) deletesAt : String? = null,
608608 @Header(" x-zipline-folder" ) folder : String? = null,
609609 @Header(" x-zipline-password" ) password : String? = null,
You can’t perform that action at this time.
0 commit comments