
Security News
The AI Industry Is Betting on Open Weights
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.
file-dropzone-element
Advanced tools
Native Web Component for a dropzone to support uploading of binary files
Native Web Component for a dropzone to support uploading of binary files
This is essentially a refactored version of https://github.com/ryanjdew/ml-uploader to eliminate AngularJS, and allow different kinds of backends. Credit to @ryanjdew for ml-uploader.
Disclaimer: Work in Progress, and not tested in production. Feedback welcome though.
Check https://caniuse.com/ to verify how well Web Components is covered by current browsers. This component uses Custom Elements v1, (optionally) HTML Imports, HTML Templates, Shadow DOM v1 (gracefull decay would be possible).
Simplest way:
<link rel="import" href="https://cdn.rawgit.com/grtjn/file-dropzone-element/master/file-dropzone.html">
Likely together with this polyfill:
<script src="https://cdn.rawgit.com/webcomponents/webcomponentsjs/master/webcomponents-hi.js" type="text/javascript" defer></script>
Alternatively, 'require'/include it with a tool like Webpack:
<%= require('html-loader!https://cdn.rawgit.com/grtjn/file-dropzone-element/master/file-dropzone.html') %>
Static example:
<file-dropzone
button="false"
multiple="multiple">
<div slot="intro">
<p><strong>Drop files here or click to select files.</strong></p>
<em>(Files will be uploaded automatically)</em>
</div>
</file-dropzone>
Emits events 'drop', 'drop-all', 'file-double-click'.
Embedding in Vue.js:
Import or include the web component in your index.html
Add file-dropzone to ignoreElements to stop it from squeaking:
Vue.config.ignoredElements = ["file-dropzone"];
Use it in any component:
<file-dropzone
button="false"
multiple="multiple"
v-on:drop="sendFile"
v-on:drop-all="sendAllFiles"
v-on:file-double-click="openFile">
<div slot="intro">
<p><strong>Drop files here or click to select files.</strong></p>
<em>(Files will be uploaded automatically)</em>
</div>
</file-dropzone>
python -m SimpleHTTPServer 8888 from project rootFAQs
Native Web Component for a dropzone to support uploading of binary files
The npm package file-dropzone-element receives a total of 10 weekly downloads. As such, file-dropzone-element popularity was classified as not popular.
We found that file-dropzone-element 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
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.