can't post multipart/form-data
@connect( props => ( { newProject: data => ( { newProjectRespond: { url: '/new', method: 'POST', body: data, force: true, headers: { 'Content-Type': 'multipart/form-data'} } })}) )
and then ‘const data = new FormData() this.props.newProject( data )’ but post data miss boundary= just like this content-type:multipart/form-data
This is likely an issue with your fetch library. Can you try it directly without refetch and see if it works?
raw fetch is ok I found the right way is set headers: { 'Content-Type': null } :)
Ah, makes sense (kind of). Since this is still probably fetch library dependent, I'm hesitant to document it, but perhaps a note in the docs would help someone else not run into this same issue.