Skip to content

Commit b9b7e2a

Browse files
author
Miguel Ruivo
authored
Merge pull request #1466 from rsanjuan87/master
add store in folder by millis
2 parents 658d6c9 + b7cc9dd commit b9b7e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/mr/flutter/plugin/filepicker/FileUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static FileInfo openFileStream(final Context context, final Uri uri, bool
296296
FileOutputStream fos = null;
297297
final FileInfo.Builder fileInfo = new FileInfo.Builder();
298298
final String fileName = FileUtils.getFileName(uri, context);
299-
final String path = context.getCacheDir().getAbsolutePath() + "/file_picker/" + (fileName != null ? fileName : System.currentTimeMillis());
299+
final String path = context.getCacheDir().getAbsolutePath() + "/file_picker/"+System.currentTimeMillis() +"/"+ (fileName != null ? fileName : "unamed");
300300

301301
final File file = new File(path);
302302

0 commit comments

Comments
 (0)