Skip to content

Commit 5f0b26b

Browse files
committed
handling uri and url api upload file
1 parent 907b0f0 commit 5f0b26b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/action/upload_files_action.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ Future<void> uploadFiles({
8585
}
8686
});
8787
}
88+
String rawUrl = apiDefinition['url']?.toString().trim() ??
89+
apiDefinition['uri']?.toString().trim() ??
90+
'';
8891

89-
String url =
90-
HttpUtils.resolveUrl(dataContext, apiDefinition['uri'].toString().trim());
92+
String url = HttpUtils.resolveUrl(dataContext, rawUrl);
9193
String method = apiDefinition['method']?.toString().toUpperCase() ?? 'POST';
9294
final fileResponse = action.id == null
9395
? null

0 commit comments

Comments
 (0)