【文件属性】:
文件名称:dropdot:使用CORS演示直接上传到Amazon S3。 使用NodeExpress构建
文件大小:249KB
文件格式:ZIP
更新时间:2021-01-30 17:32:29
aws demo node s3 upload
Dropdot
Dropdot是一个基于NodeJS,Express和S3 API作为对象存储平台的简单文件上传器。 它支持AWS S3和DreamHost对象作为存储提供程序。
配置Dropdot很简单,只需执行以下步骤:
AWS S3演示: :
安装
克隆并安装依赖项
$ git clone https://github.com/alfg/dropdot.git
$ cd dropdot
$ npm install
打开config.js并配置
module . exports . port = 3000 ; // App port
module . exports . aws_key = "YourAWSKey" ; // AWS Key
module . exports . aws_secret = "YourSuperSecretAWSKey" ; // AWS Secret
module . exports . aws_bucket = "NameOfS3Bucket" ; // S3 bucket
module . exports . redirect_host
【文件预览】:
dropdot-master
----config.js(650B)
----cors.xml(346B)
----package.json(571B)
----routes()
--------index.js(2KB)
----views()
--------index.hjs(5KB)
----.npmignore(124B)
----.gitignore(165B)
----public()
--------images()
--------javascripts()
--------stylesheets()
----app.js(717B)
----README.md(4KB)