diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index 16f580ffd..240996f98 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -388,7 +388,10 @@ class Preview extends React.Component { const submit = data => this.props.reportProject(this.state.projectId, data, this.props.user.token); if (this.getProjectThumbnail) { this.getProjectThumbnail(thumbnail => { - const data = Object.assign({}, formData, {thumbnail}); + const data = Object.assign({}, formData, { + // Strip the data:image prefix, server just wants the b64 encoded image + thumbnail: thumbnail.replace('data:image/png;base64,', '') + }); submit(data); }); } else {