diff --git a/react/containers/Dropzone/index.js b/react/containers/Dropzone/index.js index 07cc66e0..c66d30a1 100644 --- a/react/containers/Dropzone/index.js +++ b/react/containers/Dropzone/index.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { selectFile, updateError } from 'actions/publish'; +import { selectFile, updateError, clearFile } from 'actions/publish'; import View from './view'; const mapStateToProps = ({ publish }) => { @@ -17,6 +17,7 @@ const mapDispatchToProps = dispatch => { dispatch(updateError('publishSubmit', null)); }, onFileError: (value) => { + dispatch(clearFile()); dispatch(updateError('file', value)); }, }; diff --git a/react/containers/Dropzone/view.jsx b/react/containers/Dropzone/view.jsx index 90b7c2a4..7c9a0dd7 100644 --- a/react/containers/Dropzone/view.jsx +++ b/react/containers/Dropzone/view.jsx @@ -83,11 +83,11 @@ class Dropzone extends React.Component { } render () { return ( -
Drop it.
-{this.props.fileError}
-Drag & drop image or video here to publish
-OR
-CHOOSE FILE
-Drop it.
+{this.props.fileError}
+Drag & drop image or video here to publish
+OR
+CHOOSE FILE
+Drop it.
+Drop it.
{this.props.fileError}
+{this.props.fileError}
Drag & drop image or video here to publish
-OR
-CHOOSE FILE
+OR
+CHOOSE FILE
By clicking 'Publish', you affirm that you have the rights to publish this content to the LBRY network, and that you understand the properties of publishing it to a decentralized, user-controlled network. Read more.
+By clicking 'Publish', you affirm that you have the rights to publish this content to the LBRY network, and that you understand the properties of publishing it to a decentralized, user-controlled network. Read more.