Question

Uploading files to Spaces via a Frontend WordPress Page

Posted July 6, 2020 340 views
WordPresse-commerce

We operate a multi-vendor eCommerce store focused on selling digital products. We would like that our third-party vendors via some Frontend Pages of our WordPress website can upload files and that they are saved in Digital Ocean’s Spaces.

We are looking for a scalable solution, reducing resource use of our WordPress server. What is the most resource-efficient way to do this?

1) Upload Files to WordPress, then from WordPress to Spaces?
2) Upload files directly to Spaces?

Please note, we also need to offer functionality in WordPress Frontend and Backend pages to query and list stored files by vendor and show/search them.

What is the best practice to do this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

@WordPressHeavyUser The simplest solution is that you could give https://wordpress.org/plugins/amazon-s3-and-cloudfront/ a try. It supports DO Spaces and will allow you to offload your media by just uploading them to the native WordPress Media Library.

It may not offer all you need, but would at least let you do the first point you mentioned with ease.

Laurent

Hi there,

Thank you. But here I want a top-notch solution not a compromise of what is just easy. If I upload first to WordPress - I am not using all the benefits of Digital Download Spaces. Also my website will need 2 x CPU and processing power, first to upload to WordPress, then to Digital Ocean. I am ready to develop something very tailor-made. I am not looking for standard software.

Hello, @WordPressHeavyUser

We already have a really cool tutorial on how to setup this. You can check it out here:

https://www.digitalocean.com/community/tutorials/how-to-store-wordpress-assets-on-digitalocean-spaces

In this tutorial, we will use a WordPress plugin that works directly with DigitalOcean Spaces to use it as the primary asset store. The DigitalOcean Spaces Sync plugin routes the data of our WordPress media library to Spaces and provides you with various configuration options based on your needs, streamlining the process of using object storage with your WordPress instance.

Hope that helps!

Regards,
Alex

by Kathleen Juell
DigitalOcean Spaces Sync offers direct compatibility with DigitalOcean Spaces. You can use it to connect your media library to your Space, and it offers options for storing your items on your server and Space, or on your Space alone.
Submit an Answer