Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Surge | 2,744 | 3,241 | 498 | a month ago | 84 | August 22, 2022 | 190 | JavaScript | ||
CLI for the surge.sh CDN | ||||||||||
Fast Cli | 2,315 | 5 | 6 | a year ago | 16 | February 05, 2022 | 7 | mit | JavaScript | |
Test your download and upload speed using fast.com | ||||||||||
P0wny Shell | 1,539 | 2 months ago | 1 | wtfpl | PHP | |||||
Single-file PHP shell | ||||||||||
Acd_cli | 1,370 | 2 | 1 | 4 years ago | 11 | October 17, 2015 | 112 | other | Python | |
An unmaintained command line interface and FUSE filesystem for Amazon (Cloud) Drive | ||||||||||
S4cmd | 1,249 | 7 | 9 months ago | 5 | August 13, 2018 | 107 | apache-2.0 | Python | ||
Super S3 command line tool | ||||||||||
Slack Cli | 978 | 8 months ago | 38 | Shell | ||||||
:neckbeard: Powerful Slack CLI via pure bash. Rich messaging, uploads, posts, piping, oh my! | ||||||||||
Picgo Core | 705 | 13 | 31 | a month ago | 78 | May 26, 2022 | 10 | mit | TypeScript | |
:zap:A tool for pictures uploading. Both CLI & API supports. | ||||||||||
Sentry Webpack Plugin | 658 | 74 | 97 | 2 months ago | 47 | April 26, 2022 | 16 | mit | JavaScript | |
Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there. | ||||||||||
Gphotos Uploader Cli | 625 | 4 | 2 months ago | 55 | September 23, 2021 | 10 | mit | Go | ||
Command line tool to mass upload media folders to your google photos account(s) (Mac OS / Linux) | ||||||||||
Imgur Screenshot | 529 | 3 years ago | 1 | February 27, 2018 | 3 | mit | Shell | |||
Take screenshot selection, upload to imgur. + more cool things |
This Ember-CLI addon adds file uploads through FormData to the Ember Data
ember install ember-cli-form-data
Add a file field on the model
// models/post.js
export default DS.Model.extend({
attachment: DS.attr('file'),
...
});
Add the FormDataMixin to your post adapter. Run ember g adapter post
if you don't have the adapter.
// adapters/post.js
import FormDataAdapterMixin from 'ember-cli-form-data/mixins/form-data-adapter';
export default ApplicationAdapter.extend(FormDataAdapterMixin, {
// Adapter code
});
Then you can use an <input type='file' id='file-field'/>
to send the attachment:
var file = document.getElementById('file-field').files[0];
model.set('attachment', file);
model.save();
This will send the attachment
and all other attributes as a FormData object.
Some api's desire the form data fields to not include the root object
name. For example, the default adapter behavior would result in post[title]
in your serialized data. If your api instead expects just title
,
add disableRoot: true
to remove the model name from the fields.
This addon was inspired by Matt Beedle's blog post http://blog.mattbeedle.name/posts/file-uploads-in-ember-data/