Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
ember-cli-filepicker
Advanced tools
ember install:addon ember-cli-filepicker
//config/environment.js
module.exports = function(environment) {
var ENV = {
//...
filepickerKey: '<your-filepicker-key>'
};
//...
}
{{ember-filepicker pickerOptions=pickerOptions onSelection='fileSelected' onClose='onClose' onError='onError'}}
The above will use the pick method.
You should pass pickerOptions with the pick options (mimetype, services, etc).
If you want to use pickAndStore, also pass storeOptions (location, etc):
{{ember-filepicker pickerOptions=pickerOptions storeOptions=storeOptions onSelection='fileSelected' onClose='onClose' onError='onError'}}
{{ember-filepicker pickerOptions=pickerOptions multiple=true onSelection='fileSelected' onClose='onClose' onError='onError'}}
In order to have access to the filepicker
instance you can:
Ember.inject.service
is supported then in your object you can use:export default Ember.Component.extend({
//injecting the filepicker object
filepicker: Ember.inject.service(),
someFunction: function(){
//Use the promise in case you are not sure that your component will be surly initialized after filepicker has been loaded
this.get('filepicker.promise').then(function(filepicker){
//do something with filepicker
});
//OR if you are sure filepicker has already been loaded use:
this.get('filepicker.instance')
}
});
export default Ember.Component.extend({
//injecting the filepicker object
filepicker: Ember.inject.service(),
someFunction: function(){
var filepicker = this.container.lookup('service:filepicker');
//do something with the filepicker.instance or filepicker.promise
}
});
ember server
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.
FAQs
Ember cli file picker using filepicker.io
The npm package ember-cli-filepicker receives a total of 3 weekly downloads. As such, ember-cli-filepicker popularity was classified as not popular.
We found that ember-cli-filepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.