Support uploading files #32

Merged
merged 1 commit into from Oct 31, 2012

Conversation

Projects
None yet
2 participants
Contributor

bongole commented Oct 31, 2012

This patch supports uploading files.

To upload file, you should write routes.rb like below:

ApiTaster.routes do
   post '/items', {
        :item => {
           :title => 'test',
           :content => :file  # this generates file upload form.
         }
    }
end

fredwu merged commit f03ffc8 into fredwu:master Oct 31, 2012

1 check passed

default The Travis build passed
Details
Owner

fredwu commented Oct 31, 2012

Very nice! Merge, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment