
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-pallet-bundle
Advanced tools
This library is a directive that wraps the following:
Angular-Pallet: it's an angular directive to perform asynchronous file uploads. It's built on top of Ng-File-Upload and it was created to play with Paperclip Upload gem.
Angular-Progress: directive that allows you to show progress status as a bar or percentage badge.
Angular-Doc-Preview: directive that allows you to show a file preview from a given url.
This directive is not intended to be a replacement for Ng-File-Upload. Rather, it uses its potential and prevents you to deal with annoying details like:
The visual representation of the upload progress.
The visual representation of errors in the upload process.
The file preview. Not only images, files of any kind.
The visual representation of the multiple files to upload.
As "the icing on the cake", it handles the upload process asynchronously using the angular-pallet directive.
bower install ng-file-upload --save
bower install https://github.com/platanus/angular-pallet-bundle --save
Include the JS files in your project and the library as an Angular Dependency
angular.module('yourapp', ['platanus.palletBundle']);
The library comes with a proposed stylesheet under
/dist/angular-pallet-bundle.css. You can use it or create your own.
To make it simple, I'm going to show you a use case example...
Suppose you have a User model. This model has two attributes: avatar (user photo) and file (a document or spreadsheet). So, from your application, you want to let the user:
<form method="post" action="/users">
<pallet-upload-handler
render-image-as="thumb"
no-document-text="No avatar..."
upload-url="uploads"
ng-model="user.avatarIdentifier">
</pallet-upload-handler>
<pallet-upload-handler
no-document-text="No file..."
upload-url="uploads"
ng-model="user.fileUrl">
</pallet-upload-handler>
<input type="hidden" ng-value="user.avatarIdentifier" name="user[avatar_identifier]" />
<input type="hidden" ng-value="user.fileIdentifier" name="user[file_identifier]" />
<input type="submit" value="Send" />
</form>
In order to make this directive work, the POST /uploads response must be a json with the following format:
{
"upload": {
"identifier": "RmQwYe5j",
"file_extension": "png",
"file_name": "pikachu",
"download_url": "http://server.platan.us/uploads/RmQwYe5j/download"
}
}
Paperclip Upload solves the server side for you.
["EJ6pOl5Y", "ZN5BaK3j"] otherwise "EJ6pOl5Y".POST to save files.link or thumb. If this attribute is not present will show thumbnail and link."bar" value, will show a progress bar. With indicator value will show a progress badge with this format {progress}% (for example 35%). Default is indicator.git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Thank you contributors!
angular-pallet-bundle is maintained by platanus.
angular-pallet-bundle is © 2015 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
FAQs
This library is a directive that wraps the following:
We found that angular-pallet-bundle 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.