1.1.4 • Published 5 months ago

uploads-duplicator v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Strapi plugin uploads-duplicator

Overview

This plugin allows you to seamlessly synchronize your Strapi CMS uploads folder with Google Drive. It utilizes OAuth for secure authorization and provides a straightforward way to automate the backup and storage of your media assets.

Getting Started

Installation

To install the plugin, follow these steps:

  1. Install Strapi CMS (if you don't have one)

2.Download the plugin:

npm install uploads-duplicator
  1. Set enabled to true in plugins.js:
module.exports = {
    // ...
    "uploads-duplicator": {
      enabled: true,
    },
    // ...
  };
  1. Configure your OAuth credentials in the Strapi admin panel:

    • Visit your Google Cloud Console.
    • Create a new project.
    • Enable the Google Drive API for your project.
    • Create OAuth 2.0 credentials.
  2. Go to Strapi and follow steps on plugin tab

Available data formats

File TypeMIME TypeCategory
.docapplication/mswordDocuments
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentDocuments
.odtapplication/vnd.oasis.opendocument.textDocuments
.rtfapplication/rtfDocuments
.pdfapplication/pdfDocuments
.txttext/plainDocuments
.zipapplication/zipArchives
.epubapplication/epub+zipE-books
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetSpreadsheets
.odsapplication/x-vnd.oasis.opendocument.spreadsheetSpreadsheets
.csvtext/csvSpreadsheets
.tsvtext/tab-separated-valuesSpreadsheets
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationPresentations
.odpapplication/vnd.oasis.opendocument.presentationPresentations
.jpgimage/jpegImages
.jpegimage/jpegImages
.pngimage/pngImages
.webpimage/webpImages
.svgimage/svg+xmlImages
.jsonapplication/jsonData
.gifimage/gifImages
.avivideo/x-msvideoVideos
.mp4video/mp4Videos
.mp3audio/mpegAudios

Usage

  • If files or folders from the "uploads" folder have doubles somewhere on Google Drive, they wouldn't be saved

  • If you delete files in Media Library, you also should manually delete this files(all versions) on Google Drive

  • To completely delete files in the "uploads" folder, please, restart strapi

Contributing

Feel free to contribute to the development of this plugin. If you have any questions, comments, or suggestions for improving the plugin, feel free to reach out to developer via email:

Support the Project

If you appreciate this project and would like to support the developer, you can make a donation through the following link.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Disclaimer

The author of this project disclaims any liability for any damages, direct or indirect, arising from the use of this plugin.