title: How to save audio file in Firebase
body: <p>I have successfully save an image,recorded the sound and save it in Firebase. But the audio file cannot save multiple file, when i try to save another recording, it will replace the old record and only have one file in Firebase. How can i save the new record without replacing the old one in Firebase?</p>
  
  <pre><code>Uri uriAudio = Uri.fromFile(new File(audioFilePath).getAbsoluteFile());
          final StorageReference filePath = ref.child("Education/image").child(uriImage.getLastPathSegment());
          final StorageReference audioRef = ref.child("Education/audio").child(uriAudio.getLastPathSegment());
  
  
                  // on success upload audio
                  audioRef.putFile(uriAudio).addOnSuccessListener(new OnSuccessListener&lt;UploadTask.TaskSnapshot&gt;() {
                      @Override
                      public void onSuccess(final UploadTask.TaskSnapshot audioSnapshot) {
  
                          //upload image
                          filePath.putFile(uriImage).addOnSuccessListener(new OnSuccessListener&lt;UploadTask.TaskSnapshot&gt;() {
                              @Override
                              public void onSuccess(final UploadTask.TaskSnapshot imageSnapshot) {
  
                                  mProgress.dismiss();
  
                          @SuppressWarnings("VisibleForTests") Uri audioUrl= audioSnapshot.getDownloadUrl();
                          @SuppressWarnings("VisibleForTests") Uri imageUrl= imageSnapshot.getDownloadUrl();
  </code></pre>
  
  <p>Here is the attachment for audio file in Firebase Storage
  <a href="https://i.stack.imgur.com/WvG5V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WvG5V.png" alt="Here is the attachment for audio file in Firebase Storage"></a></p>