문제

I need to send and image to a rails api from my ios mobile application and store it with paperclip. This is my json request.

{
 attachment:{
   tempfile: #conversion in base 64,
   original_file_name: "file.jpg",
   content_type: "image/jpg"
 }
}

Is there any params i am missing? It seems that paperclip isn't able to rebuild the file from the hash. Any advice would be appreciated.

도움이 되었습니까?

해결책

I relize that all the info i need are in the base64 encode

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top