2.0.1 • Published 8 months ago

@medusajs/file-local v2.0.1

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

Local file storage

Store uploaded files to your Medusa backend locally.

Not suited for production environments

Plugin Documentation | Medusa Website | Medusa Repository

Features

  • Store product images locally

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install @medusajs/file-local

2 . In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: `@medusajs/file-local`,
    options: {
      upload_dir: 'uploads/images', // optional
      backend_url: 'http://localhost:9000' // optional
    }
  },
]

Test the Plugin

1. Run the following command in the directory of the Medusa backend to run the backend:

npm run start

2. Upload an image for a product using the admin dashboard or using the Admin APIs.

medusa-plugin-reviews-and-ratingmedusa-my-custom-pluginmedusa-plugin-contact-us@everything-registry/sub-chunk-592medusa-fulfillment-sendcloudmedusa-plugin-authorize-netwodoxo-medusa-plugin-category-imageswodoxo-medusa-starter-defaultwodoxo-medusa-variant-imagesgcm-custom-fulfillment1medusa-plugin-multicurrencymedusa-plugin-nabx-multicurrency@kvytech/medusa-plugin-announcement@kvytech/medusa-plugin-management@kvytech/medusa-plugin-newsletter@kvytech/medusa-plugin-product-reviews@medusajs/medusa@hifive-dev/medusa-fulfillment-sendcloudmy-headlessmy-medusa-storeshopism-affliate-marketingshopism-customer-authshopism-emails-messagesshopism-globalpayments-pluginshopism-order-docketshopism-subscription-pluginshopism-wishlist-pluginmedusa-google-storagemedusa-hello-worldmedusa-import-matterhorn-v1medusa-import-xtradermedusa-payment-authorizenetmedusa-payment-bank-transfermedusa-jovanmedusa-outerspace-plugin-strapimedusa-locationmedusa-plugin-couriermedusa-fulfillment-econtmedusa-admin-dispatchermedusa-admin-vendormedusa-authorizenetmedusa-bank-transfermedusa-blogmedusa-admin-addressmedusa-csv-stock-managementmedusa-custom-medusamedusa-customer-queriesmedusa-shopism-basemedusa-starter-drivermedusa-starter-ordermedusa-storefront-configurationmedusa-product-options-metadata-voxsarmedusa-razorpay-webhookmds-plugin-shop-providermedusa-plugin-kafkamedusa-plugin-kycmedusa-plugin-mailjet1medusa-plugin-mbbankmedusa-plugin-reviews-and-ratingsmedusa-plugin-telegrammedusa-plugin-user-rolesmedusa-product-feature-displaymedusa-plugin-sapomedusa-plugin-quickbooksmedusa-plugin-razorpay-detailsmedusa-edit-optionvalue-metadatamedusa-plugin-delivery-matrixmedusa-plugin-demo-mtmedusa-plugin-easyblogmedusa-plugin-excel-importmedusa-plugin-fairemedusa-plugin-feedsmedusa-plugin-pagemedusa-plugin-pagesmedusa-plugin-blobmedusa-plugin-brevo-emailmedusa-plugin-paymobmedusa-payment-zalopay@weframetechsolutions/medusa-order-affiliate@teewoeijer/medusa@zoowee/medusa-payment-razorpayavif-convertcharadhul-notification-plugin@shiju-s/valoriz-loyalty-plugin@sgftech/medusa-plugin-auction
2.0.1

8 months ago

2.0.0

9 months ago

1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago