Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huobazi/qiniu-direct-upload-example
Example for qiniu_direct_uploader
https://github.com/huobazi/qiniu-direct-upload-example
Last synced: 6 days ago
JSON representation
Example for qiniu_direct_uploader
- Host: GitHub
- URL: https://github.com/huobazi/qiniu-direct-upload-example
- Owner: huobazi
- Created: 2013-09-11T09:56:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T01:14:42.000Z (over 7 years ago)
- Last Synced: 2023-03-22T17:18:22.845Z (over 1 year ago)
- Language: Ruby
- Homepage: https://github.com/huobazi/qiniu_direct_uploader
- Size: 58.6 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QiniuDirectUploader Example
## How to run
This is a example for https://github.com/huobazi/qiniu_direct_uploader
Please see the files
```
config/initializers/qiniu.rb.example
app/views/items/index.html.erb
app/assets/javascripts/items.js.coffee
app/controllers/items_controller.rb
```1. Clone the repo to your localhost
2. Rename the config/initializers/qiniu.rb.example to config/initializers/qiniu.rb
3. Setup your Qiniu KEY to the config/initializers/qiniu.rb
4. Bundle install && Run
5. Upload a image
6. See the javascript consolesee also:
1. http://docs.qiniu.com/api/v6/put.html#upload-without-callback
2. http://docs.qiniu.com/api/v6/put.html#upload-api
3. http://docs.qiniu.com/api/v6/put.html#uploadToken-returnBody## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request