Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
uploadcare-widget
Advanced tools
This is the Uploadcare widget source.
Add following code to your document's <head>
.
<script>
// Widget settings
UPLOADCARE_PUBLIC_KEY = 'your_public_key';
</script>
<script src="https://ucarecdn.com/widget/x.y.z/uploadcare/uploadcare.full.min.js" charset="utf-8"></script>
Where x.y.z
is widget version (2.0.6 for example).
Here is also version without builtin jQuery:
<script>
// Widget settings
UPLOADCARE_PUBLIC_KEY = 'your_public_key';
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" charset="utf-8"></script>
<script src="https://ucarecdn.com/widget/x.y.z/uploadcare/uploadcare.min.js" charset="utf-8"></script>
The official Widget documentation has more information on using the widget itself.
Install uploadcare using bower
command:
$ bower install uploadcare
Add following code to your document's <head>
.
<script>
// Widget settings
UPLOADCARE_PUBLIC_KEY = 'your_public_key';
// To use static content from your host
UPLOADCARE_SCRIPT_BASE = '/bower_components/uploadcare/';
</script>
<script src="/bower_components/jquery/jquery.js" charset="utf-8"></script>
<script src="/bower_components/uploadcare/uploadcare.js" charset="utf-8"></script>
Install uploadcare using npm
command:
$ npm install uploadcare-widget
Add following code to your document's <head>
.
<script>
// Widget settings
UPLOADCARE_PUBLIC_KEY = 'your_public_key';
// To use static content from your host
UPLOADCARE_SCRIPT_BASE = '/node_modules/uploadcare-widget/';
</script>
<script src="/node_modules/jquery/jquery.js" charset="utf-8"></script>
<script src="/node_modules/uploadcare-widget/uploadcare.js" charset="utf-8"></script>
Clone the repository.
You need a working Ruby 2.0.0 and above environment with Bundler.
If you don't want to raise the environment on your machine, you can use Vagrant. Just install Vagrant and VirtualBox or other provider.
After open command line, go to this folder and run:
vagrant up
vagrant ssh
Inside folder run
bundle install
cd ./test/dummy
bundle install
bundle exec rake js:latest:build
to build assets
to the pkg/latest directory (with the “latest” suffix).bundle exec rake js:release:build
to build assets
to the pkg/version folder (with the current version suffix).
The version is specified in lib/uploadcare-widget/version.rb
.Go to test/dummy/
. There is a simple Rails app. Run it:
bundle exec rails server
Open http://127.0.0.1:3000/. Follow any link. There's going to be a widget or three. Edit code and reload page :-)
Jasminerice
installed under the test/dummy/
Rails app.
To run tests in your browser go to http://127.0.0.1:3000/jasmine.
For more information see jasminerice docs.
To run tests in a terminal you must first install phantomjs.
Then you have two options:
bundle exec guard start
bundle exec guard-jasmine
The first one is for continuous tests execution,
the second one runs tests just once.
Both should be executed from the test/dummy/
directory.
See guard-jasmine docs for more information.
2.10.4 - 2017-06-22
FAQs
Uploadcare Widget: file uploader.
The npm package uploadcare-widget receives a total of 12,580 weekly downloads. As such, uploadcare-widget popularity was classified as popular.
We found that uploadcare-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.