pastejud
v0.0.3
Published
You can "paste jud" the image from clipboard. This will generate a file object that you can post to your API to save as image.
Downloads
204
Readme
Paste.jud
You can "paste jud" the image from clipboard. This will generate a file object that you can post to your API to save as image.
Usage
<script src="https://unpkg.com/[email protected]/dist/pastejud.js"></script>
<script>
Paste.jud(function (file) {
console.log(file);
// You can post the file to your API using
// const formData = new FormData();
// formData.append("userfile", file);
});
</script>