samdark / yii2-cookbook

Yii 2.0 Community Cookbook
1.45k stars 296 forks source link

REST: upload a file #30

Open samdark opened 9 years ago

samdark commented 9 years ago

https://github.com/yiisoft/yii2/issues/6127

mtangoo commented 9 years ago

useful links (have not tested them so I put here fo reference). I quickly loose links on bookmarks :) http://stackoverflow.com/questions/24275419/yii2-rest-api-file-upload-using-put https://gist.github.com/appcodr/ff02301b259488a69710

samdark commented 9 years ago

@mtangoo if you have interesting Yii stuff about other topics that could fit in the cookbook, feel free to create additional issues.

mtangoo commented 9 years ago

Cool I will definitely!

thiagotalma commented 9 years ago

@samdark was already defined what the best tool to create the cookbook?

I have seen many projects in https://readthedocs.org The good of this tool is to keep the collaborative concept, as it uses the GitHub files.

samdark commented 9 years ago

@thiagotalma just markdown files for now. We'll be able to re-format everything closer to when the book we'll be complete.

thiagotalma commented 9 years ago

@samdark See: http://yii2-cookbook.readthedocs.org/

I created without changing a single line, pointing directly to your repository.

samdark commented 9 years ago

Wow, that's cool. Could you transfer ownership to me or add me as admin there somehow?

thiagotalma commented 9 years ago

Have you created a username? What is?

samdark commented 9 years ago

samdark

thiagotalma commented 9 years ago

Done!

See what I did an installation with zero configuration.

You can make a few changes that will give better results.

It is also important to create the webhook on GitHub for the project is automatically updated after each commit.

samdark commented 9 years ago

Thanks! I've added webhook.

tunecino commented 8 years ago

@samdark check also http://hubpress.io another interesting open-source solution you may use in case if you want to build a website for the book, kind of blog posts (using ghost) where people can share & comment (within disqus) each of them. Articles will be stored and retrieved from github and the website will be published within github pages : [github-username].github.io then you can also publish it to any website within a simple DNS config file.

Here is some examples on how it may look like : https://demo.ghost.io/ http://mgreau.com/posts/


quick setup (video) : https://youtu.be/-gLCX9THFX0 https://youtu.be/ycjIUJLk7Ho

samdark commented 8 years ago

@tunecino thanks for suggestion.