Skip to content

Commit

Permalink
Merge pull request #1466 from rsanjuan87/master
Browse files Browse the repository at this point in the history
add store in folder by millis
  • Loading branch information
Miguel Ruivo authored Mar 20, 2024
2 parents 658d6c9 + b7cc9dd commit b9b7e2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static FileInfo openFileStream(final Context context, final Uri uri, bool
FileOutputStream fos = null;
final FileInfo.Builder fileInfo = new FileInfo.Builder();
final String fileName = FileUtils.getFileName(uri, context);
final String path = context.getCacheDir().getAbsolutePath() + "/file_picker/" + (fileName != null ? fileName : System.currentTimeMillis());
final String path = context.getCacheDir().getAbsolutePath() + "/file_picker/"+System.currentTimeMillis() +"/"+ (fileName != null ? fileName : "unamed");

final File file = new File(path);

Expand Down

0 comments on commit b9b7e2a

Please sign in to comment.