ep_fileupload_aws

0.0.15 • Public • Published

ep_fileupload_aws

Clone of ep_fileupload, however it uploads to AWS S3 instead of using the file system.

/*Add to your settings file*/
"ep_fileupload_aws" : {
   "S3_ACCESS_KEY": "YOUR_ACCESS_KEY",
   "S3_SECRET_KEY":"YOUR_SECRET_KEY",
   "bucket" : "BUCKET_NAME",
   "base_key" : "PREPEND YOUR KEY WITH THIS", /* optional, usually a folder, something like "folder/subfolder/" */
   "base_url" : "https://s3.amazonaws.com/" /*optional, defaults to https://s3.amazonaws.com/*/
}

Uploaded files will be given a GUID, the GUID will function as the file identifier in AWS and in Etherpad.

The file will be renamed, but the extension preserved. Files will reside at {BASE_URL}{BUCKET}/{BASE_KEY}{GUID}.{EXT}

The plugin plays nice with ep_fileupload's urls. You'd just need to copy your existing files your S3 bucket in the location matching above. The pad URL's will correctly redirect.

NOTICE: Make a backup of your files!

Removing "ep_fileupload" on etherpad will delete any uploaded files from your server. Copy your files before replacing "ep_fileupload" with "ep_fileupload_aws".

ep_fileupload stores files in the node_modules/ep_fileupload/upload folder

/ep_fileupload_aws/

    Package Sidebar

    Install

    npm i ep_fileupload_aws

    Weekly Downloads

    16

    Version

    0.0.15

    License

    none

    Unpacked Size

    43.7 kB

    Total Files

    15

    Last publish

    Collaborators

    • clayu