Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support uploading files #32

Merged
merged 1 commit into from
Oct 31, 2012
Merged

Support uploading files #32

merged 1 commit into from
Oct 31, 2012

Conversation

bongole
Copy link
Contributor

@bongole 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 added a commit that referenced this pull request Oct 31, 2012
Support uploading files
@fredwu fredwu merged commit f03ffc8 into fredwu:master Oct 31, 2012
@fredwu
Copy link
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants