Skip to content

Commit 2d3b443

Browse files
authored
Add support for gs:// urls in uploader (#87)
1 parent 3a88d23 commit 2d3b443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/com/cloudinary/android/UploaderStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void totalBytesLoaded(long bytes) {
9393
}
9494
}
9595

96-
if (file instanceof String && !((String) file).matches("(?s)ftp:.*|https?:.*|s3:.*|data:[^;]*;base64,([a-zA-Z0-9/+\n=]+)")) {
96+
if (file instanceof String && !((String) file).matches("(?s)ftp:.*|https?:.*|s3:.*|gs:.*|data:[^;]*;base64,([a-zA-Z0-9/+\n=]+)")) {
9797
file = new File((String) file);
9898
}
9999
String filename = (String) options.get("filename");

0 commit comments

Comments
 (0)