阅读背景:

使用React和Rails上传图像 - Paperclip和AWS S3存储桶

来源:互联网 

I have a react frontend and a Rails backend. I am using the paperclip gem and aws-sdk gem in order to upload images to my app. The whole idea is that a user can upload a comment and in that comment there can be an attachment. I think maybe I am sending my backend the wrong data though because it is not working.... On the frontend i'm using file reader to make a file object and sending my rails app the file object -- but it doesn't seem to be recognizing it. If i want my rails backend to recognize this image attachment, how should the image be formatted in my frontend before i send it to my rails app? I have a react frontend and a Rails backend. I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: