Skip to content

Instantly share code, notes, and snippets.

View jmndao's full-sized avatar
💻
Coding ...

Jonathan Musa NDAO jmndao

💻
Coding ...
View GitHub Profile
@jmndao
jmndao / firebaseAntdFileUploader.js
Last active April 28, 2024 10:56
Create custom image request from firebase using Antd library.
// Note: this is a combo between react-antd and firebase (storage)
// - How you can add your task progress bar to the antd-progress
/* Action */
const firebaseUpload = ({ onSuccess, onProgress, onError, file }) => (dispatch) => {
const storageRef = storage.ref(`portfolio/${file.name}`);
const task = storageRef.put(file);