enable thumbnail uploads
This commit is contained in:
parent
2beb83d076
commit
ea50fbd707
1 changed files with 2 additions and 2 deletions
|
@ -477,7 +477,7 @@ class PublishPage extends React.PureComponent {
|
||||||
|
|
||||||
// upload the thumbnail
|
// upload the thumbnail
|
||||||
if (!this.state.uploadedThumbnailUri) {
|
if (!this.state.uploadedThumbnailUri) {
|
||||||
//this.setState({ uploadThumbnailStarted: true }, () => uploadThumbnail(this.getFilePathFromUri(uri), RNFS));
|
this.setState({ uploadThumbnailStarted: true }, () => uploadThumbnail(this.getFilePathFromUri(uri), RNFS));
|
||||||
}
|
}
|
||||||
} else if ('image' === mediaType || 'video' === mediaType) {
|
} else if ('image' === mediaType || 'video' === mediaType) {
|
||||||
const create =
|
const create =
|
||||||
|
@ -488,7 +488,7 @@ class PublishPage extends React.PureComponent {
|
||||||
.then(path => {
|
.then(path => {
|
||||||
this.setState({ currentThumbnailUri: `file://${path}`, updatingThumbnailUri: false });
|
this.setState({ currentThumbnailUri: `file://${path}`, updatingThumbnailUri: false });
|
||||||
if (!this.state.uploadedThumbnailUri) {
|
if (!this.state.uploadedThumbnailUri) {
|
||||||
//this.setState({ uploadThumbnailStarted: true }, () => uploadThumbnail(path, RNFS));
|
this.setState({ uploadThumbnailStarted: true }, () => uploadThumbnail(path, RNFS));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue