Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
aframe-uploadcare-component
Advanced tools
A Uploadcare component for A-Frame.
For A-Frame.
Property | Description | Default Value |
---|---|---|
publicKey | You uploadcare's public key |
upload(value, contentType)
download(fileId, callback, binary)
uploadcare-upload-started
: Upload started.uploadcare-upload-completed
Upload completed succesfully:
url
: Uploadcare CDN url of the uploaded resource.fileInfo
: Uploadcare fileInfo object.uploadcare-upload-error
: Something went wrong when uploading.
errorInfo
: Error info.fileInfo
: Uploadcare fileInfo object.uploadcare-upload-progress
, {progress: uploadInfo.progress, uploadInfo: uploadInfo})
progress
: Percentage of the current upload progress.uploadInfo
: uploadInfo objectInstall and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-uploadcare-component/dist/aframe-uploadcare-component.min.js"></script>
</head>
<body>
<a-scene uploadcare="publicKey: asdf-1234-zxcv">
</a-scene>
</body>
Install via npm:
npm install aframe-uploadcare-component
Then require and use.
require('aframe');
require('aframe-uploadcare-component');
var sceneEl = document.querySelector('a-scene');
sceneEl.addEventListener('uploadcare-upload-completed', function (url) { alert('Uploaded: ' + url);});
sceneEl.upload(jsonObject, 'application/json');
var sceneEl = document.querySelector('a-scene');
sceneEl.download(url, function (data) {
console.log('Loaded data', data);
});
FAQs
A Uploadcare component for A-Frame.
The npm package aframe-uploadcare-component receives a total of 103 weekly downloads. As such, aframe-uploadcare-component popularity was classified as not popular.
We found that aframe-uploadcare-component 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.