How to post image with fetch?
问题 I just learning react and I create an gallery App, but I have problem with posting picture to API. The problem is that when I click on button ADD there's nothing happend just in console.log I get an error 500 . Here is my component with post request: class AddPhoto extends Component { constructor(props) { super(props); this.state = { modal: false, images: [], isLoading: false, error: null, }; this.toggle = this.toggle.bind(this); this.handleClick = this.handleClick.bind(this); this