File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
cloudinary-core/src/main/java/com/cloudinary Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ public static final Map<String, Object> buildUploadParams(Map options) {
3434 if (value != null )
3535 params .put (attr , value .toString ());
3636 }
37- params .put ("eager" , buildEager ((List <Transformation >) options .get ("eager" )));
37+ Object eagerObj = options .get ("eager" );
38+ String eager = eagerObj instanceof String ? eagerObj .toString () : buildEager ((List <Transformation >) options .get ("eager" ));
39+
40+ params .put ("eager" , eager );
3841 params .put ("notification_url" , (String ) options .get ("notification_url" ));
3942 params .put ("eager_notification_url" , (String ) options .get ("eager_notification_url" ));
4043 params .put ("proxy" , (String ) options .get ("proxy" ));
You can’t perform that action at this time.
0 commit comments