Skip to content

Commit f09aacb

Browse files
authored
Add filename test to upload large
1 parent 36d7218 commit f09aacb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractUploaderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,12 @@ public void testUploadLarge() throws Exception {
571571
assertEquals("raw", resource.get("resource_type"));
572572
assertTrue(resource.get("public_id").toString().startsWith("cldupload"));
573573

574-
resource = cloudinary.uploader().uploadLarge(new FileInputStream(temp), asMap("chunk_size", 5243000, "tags", tags));
574+
resource = cloudinary.uploader().uploadLarge(new FileInputStream(temp), asMap("filename", "test123", "chunk_size", 5243000, "tags", tags));
575575
assertArrayEquals(tags, ((java.util.ArrayList) resource.get("tags")).toArray());
576576
assertEquals("image", resource.get("resource_type"));
577577
assertEquals(1400, resource.get("width"));
578578
assertEquals(1400, resource.get("height"));
579+
assertEquals("test123", resource.get("original_filename"));
579580

580581
resource = cloudinary.uploader().uploadLarge(temp, asMap("chunk_size", 5880138, "tags", tags));
581582
assertArrayEquals(tags, ((java.util.ArrayList) resource.get("tags")).toArray());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy