Sending files to a Rails JSON API

后端 未结 3 1084
孤城傲影
孤城傲影 2020-12-23 10:02

I know there are questions similar to this one, but I\'ve not found a good answer yet. What I need to do is send a description of an object to one of my create methods, whic

3条回答
  •  眼角桃花
    2020-12-23 10:33

    There is an awesome gem for this purpose if you are using carrierwave

    https://github.com/lebedev-yury/carrierwave-base64

提交回复
热议问题