Anyone have tried to Upload mp3 files through Firebase. I have the following(simplified):
ref.push({
titel: jQuery("#" + this._gnf.titel).val(),
submitted_by: {
name: jQuery("#" + this._gnf.submitted_by[0]).val(),
},
song: jQuery("#" + this._gnf._song).val(),
});// END: ref push
The "song" ref should hold the mp3 files. Have been reading that you have to convert them to a base64 string. But can it even be done with an MP3 file? The
jQuery("#" + this._gnf._song).val();
refer to at input file:
<input id="file-upload" name="file-upload" type="file" class="file" multiple=true data-preview-file-type="any">