
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@instructure/k5uploader
Advanced tools
A javascript based uploader for kaltura.
npm install k5uploader
This uploader uses javascript, you may need to set up CORS with your kaltura instance to use it. By default kaltura does not have such headers.
The uploader uses xhr2. Evergreen browsers support it today. Your support needs may limit your ability to use it.
//grab a file somehow
var file = this.files[0];
// options to configure the uploader
var opts = {
kaltura_session: {
ks: '', // valid kaltura session
subp_id: '', //valid kaltura subpartner id
partner_id: '', // valid kaltura partner id
uid: '', // valid kaltura uid
serverTime: '' // optional timestamp from session
},
allowedMediaTypes: ['video', 'audio'], // defaults
uploadUrl: 'http://kaltura_box.com/index.php/partnerservices2/upload',
entryUrl: 'http://kaltura_box.com/index.php/partnerservices2/addEntry',
uiconfUrl: 'http://kaltura_box.com/index.php/partnerservices2/getuiconf',
entryDefaults: {
partnerData: "optional custom serialized data here",
}
};
// create instance with options
var uploader = new K5Uploader(opts);
// wait for 'K5.ready' and upload the file
uploader.addEventListener('K5.ready', function()() {
uploader.uploadFile(file);
});
The K5Uploader dispatches several events during the upload process. Listen to them or ignore them as your needs dictate.
Event | Description |
---|---|
K5.uiconfError | there has been an error loading data from the uiconfUrl |
K5.ready | a valid kaltura session and uiconf serivce data is loaded. now save to upload |
K5.fileError | uploaded filetype is not included in the allowedMediaTypes options |
K5.progress | upload progress is detected |
K5.complete | upload is complete |
K5.error | error uploading file or adding upload via entryUrl |
In order to register an event handler, the K5Uploader
includes the following methods:
k5Uploader.addEventListener(eventName, callback);
k5Uploader.removeEventListener(eventName, callback)
FAQs
html 5 kaltura uploader
The npm package @instructure/k5uploader receives a total of 3,624 weekly downloads. As such, @instructure/k5uploader popularity was classified as popular.
We found that @instructure/k5uploader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 35 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.