Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ember-cli-cloudinary
Advanced tools
Ember addon for Cloudinary
ember install ember-cli-cloudinary
Add your cloud name & api key to config/environment.js ENV:
cloudinary: {
cloudName: 'some_cloud_name',
apiKey: 'some_api_key'
},
This component will render an <img>
built from a cloudinary url and options.
{{cloudinary-image 'imageId' (hash width=100)}}
Width and height attributes are set on the img tag as well as passed to cloudinary, allowing you to specify the resolution via the "dpr" attribute.
{{cloudinary-image 'imageId' (hash width=100 height=100 dpr="2.0")}}
This component will sign and upload a file directly to Cloudinary from the browser. After a successful upload it will pass the signed response to your server.
{{cloudinary-direct-file signatureEndpoint='/sign_upload'}}
Set signatureEndpoint to the API endpoint that signs your cloudinary direct upload requests.
You can also set an action for different events. For example when the file is done uploading:
{{cloudinary-direct-file signatureEndpoint='/sign_upload' onUploadDone=(action 'showThumbnail')}}
option | default | Info |
---|---|---|
name | 'file' | Name of the input |
multiple | false | True if you want to upload more than one file |
accept | 'image/jpeg,image/gif,image/png' | Files types allowed in the input type file |
style | Ember.String.htmlSafe("") | Component style |
signatureEndpoint | null | Signs your cloudinary direct upload requests |
disableImageResize | null | - |
imageMaxWidth | 10000000 | Image max width |
imageMaxHeight | 10000000 | Image max height |
acceptFileTypes | [Regex with image extensions] | Files extension allowed (checked by code) |
maxFileSize | 50000000 | Max File Size |
loadImageMaxFileSize | 50000000 | Load Image Max File Size |
Event | Info |
---|---|
onUploadDone | File uploaded |
fileProgress | File progress |
allFileProgress | More than one file progress |
onUploadStart | Upload Starts |
onUploadStop | Upload Stops |
onUploadFail | Upload Fails |
onUploadAlways | Upload Always |
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
FAQs
Ember addon for Cloudinary
The npm package ember-cli-cloudinary receives a total of 3 weekly downloads. As such, ember-cli-cloudinary popularity was classified as not popular.
We found that ember-cli-cloudinary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.