cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload Magento 2 product media on Digital Ocean storage?

How to upload Magento 2 product media on Digital Ocean storage?

I should be able to upload and save the Magento 2 product media files and downloadable files on the Digital Ocean.

It should accept various media files like images, videos, GIFs, etc. 

1 REPLY 1

Re: How to upload Magento 2 product media on Digital Ocean storage?

Hello @shailjagupa2a6 

 

To upload Magento 2 product media (images, videos, etc.) to DigitalOcean Spaces (which is compatible with the S3 API), you need to configure your Magento store to use DigitalOcean Spaces for storing and serving media files instead of the default local server storage.

 

First, ensure that you have a DigitalOcean account and Spaces set up.

After creating the space, you will be provided with Access Key and Secret Key, which you will use to configure Magento 2.

 

Install the Required S3-Compatible Module

Configure Magento 2 to Use DigitalOcean Spaces (via S3)

 

Update env.php Configuration

Access your Magento 2 installation (via SSH or FTP).

Open the file located at app/etc/env.php.

Add the following S3-compatible configuration under the 'media' section:

 

Verify the Media Settings in the Admin Panel

Navigate to Stores > Configuration > Media Storage.

Under General Settings, make sure Media Storage is set to Remote and Remote Storage is set to S3.

The media files will be stored under the pub/media directory on your DigitalOcean Space.

 

 

 

Hope it helps ! 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9