Skip to content Skip to sidebar Skip to footer

.mov Files Getting Stored As Text In Firebase

I'm trying to store a .mov file in Firebase storage in my React Native app. I convert the file to a blob and upload it to Firebase. The file is being stored in Firebase with the t

Solution 1:

Your problem is that you are trying to open the saved video file with a file viewer in stead of a video player, that's why you see those symbols. To solve this, change the app with which you are opening the movie files and try to choose Quicktime . As i see in your screenshot, the type of your file is video/mov. So it's a video file and not a text file.

Hope it helps.


Solution 2:

I also had the same problem. The solution was to set the contentDisposition property to an empty string when the file extension was '.mov'.

So my metadata looked something like this:

var metadata = {
             contentType: 'video/quicktime',
             name: 'videoName.mov',
             contentDisposition: ''
};

Hope this helps.


Post a Comment for ".mov Files Getting Stored As Text In Firebase"