Maximilian Schulz
2008-Oct-28 21:31 UTC
File upload via non-browser REST call (using attachment_fu)
Hi everyone, this might be a really stupid question but I have hit a wall here. I already tried various different strategies but I really cannot find a solution. The only thing which have not tried is to fake a browser request, but I do not wanna go that far. So I hope I missed something ;) Ok, finally our problem: We have an application which allows file attachments for a model. We implemented this feature with attachment_fu. Now we have the case, that another application (a native windows app) needs to access this feature via the API. We can create the model with no problem. But when it comes to uploading files and adding them as an attachment, we have no luck with the calls. Any idea or link what we are missing here? We simply are not able to upload/access the file (always a 500 or something similar). Thank you very much, Max -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---