aboutsummaryrefslogtreecommitdiffstats
path: root/AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java')
-rw-r--r--AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java
index 3737026..d2a7725 100644
--- a/AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java
+++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/MultipartTests.java
@@ -87,6 +87,7 @@ public class MultipartTests extends TestCase {
public void testUpload() throws Exception {
File dummy = new File(Environment.getExternalStorageDirectory(), "AndroidAsync/dummy.txt");
final String FIELD_VAL = "bar";
+ dummy.getParentFile().mkdirs();
FileOutputStream fout = new FileOutputStream(dummy);
byte[] zeroes = new byte[100000];
for (int i = 0; i < 10; i++) {