This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const mkdirp = require('mkdirp-promise'); | |
const admin = require('firebase-admin'); | |
const { execFile } = require('child-process-promise'); | |
const path = require('path'); | |
const os = require('os'); | |
const fs = require('fs'); | |
admin.initializeApp(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Upload | |
name="file" | |
// eslint-disable-next-line no-undef | |
customRequest={data => { | |
const { firebase } = this.props; | |
const ref = firebase | |
.storage() | |
.ref('music') | |
.child(`${new Date().getTime()}`); |