lbry-desktop/ui/component/webUploadList/index.js
infinite-persistence bef7ff4a2d
Support resume-able upload via tus
## Issue
38 Handle resumable file upload

## Notes
Since we can't serialize a File object, we'll need to the user to re-select the file to resume.
2021-11-11 08:00:12 +08:00

18 lines
529 B
JavaScript

import { connect } from 'react-redux';
import { selectCurrentUploads, selectUploadCount, doUpdateUploadRemove } from 'lbryinc';
import { doOpenModal } from 'redux/actions/app';
import { doPublishResume } from 'redux/actions/publish';
import WebUploadList from './view';
const select = (state) => ({
currentUploads: selectCurrentUploads(state),
uploadCount: selectUploadCount(state),
});
const perform = {
doPublishResume,
doUpdateUploadRemove,
doOpenModal,
};
export default connect(select, perform)(WebUploadList);