aleksei0807 / react-images-uploader

React.js component for uploading images to the server
MIT License
177 stars 67 forks source link

Invalid response type #11

Closed cyperus closed 6 years ago

cyperus commented 7 years ago
{  message:'invalid response type',
    response:{
        code:0,
        path:'https:///admin/667777.jpg'
  }, 
    fileName:"ImagesUploader"}

So, what is the valid response type and how to display the error message? Thanks.

aleksei0807 commented 7 years ago

as you can see at https://github.com/aleksei0807/react-images-uploader/blob/master/src/index.jsx#L316 valid response type is Array or string

vitalyliber commented 7 years ago

@aleksei0807 Can I send additional information in response? For example id of image.

vitalyliber commented 7 years ago

I expected a behaviour as { image_urls: [{'link': 'https://...', id: 1}].

kirillDanshin commented 6 years ago

@vitalyliber please open new issue for this feature and we'll implement it. thanks.

anyway, this issue seems to be resolved.