
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
该插件基于ali-oss,在将其封装到egg的基础上还进行了简单的扩展
npm i egg-alioss
// config/plugin.js
exports.alioss = {
enable: true,
package: 'egg-alioss',
};
// {app_root}/config/config.default.js
exports.alioss = {
client: {
accessKeyId: 'your access key',
accessKeySecret: 'your access secret',
bucket: 'your bucket',
endpoint: 'oss-cn-xxx.aliyun.com',
},
};
// {app_root}/app/****.js
const alioss = app.alioss;
const info = alioss.getUploadToken('abc', 500, []);
更多用法参见ali-oss
params一览
$bucket 存储空间
$object 对象(文件)
$etag 文件的ETag,即返回给用户的ETag字段
$size Object大小,CompleteMultipartUpload时为整个Object的大小
$mimeType 资源类型,例如jpeg图片的资源类型为image/jpeg
$imageInfo.height 图片高度
$imageInfo.width 图片宽度
$imageInfo.format 图片格式,例如jpg、png等
options一览
maxLength 限制文件最大长度,单位字节
filename 限制文件名
回调服务器的地址
FAQs
Ali-oss plugin for egg
We found that egg-alioss 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.