New API responses with good errors

This commit is contained in:
Jori Lallo
2016-09-17 14:53:30 -07:00
parent e631025887
commit fcc83dd2d6
11 changed files with 86 additions and 50 deletions

View File

@ -73,7 +73,7 @@ class MarkdownEditor extends React.Component {
formData.append('file', file);
}
fetch(data.upload_url, {
fetch(data.uploadUrl, {
method: 'post',
body: formData,
})