Serve huge files directy from s3 bucket (in a s3 compatible cloud, not amazo) in wordpress - wordpress

I have a huge file stored in a s3 compatible cloud ocean (not Amazon). I want to have a download button which will result to downloading this file for user.
I have installed "Media Cloud" plugin which has ability to connect to s3 compatible cloud. But I cant find a way to serve this file which is only saved in my s3 bucket in my wordpress.

If you only have 1 file to serve, you should be able to get the URL of the file in your s3 bucket admin panel where the file lives.
The main thing you need to check if the object (the file) is publically readable and your bucket is set up as a "static website" so it can serve HTTP. If it's not, you won't be given an object URL to put on your site.
I'm not sure who you host your s3 with if you say it's not Amazon, but here's a guide on how to do it if you did use Amazon.

Related

File link in amazon aws s3 bucket using asp.net

I have some images stored on AWS S3 bucket. I am using ASP.NET SDK. Now I can upload/download/delete files through the SDK. But what I want is to get a link to the image files so that if I want to display an image, I can show its thumbnail on my website. I am unable to find anything in ASP.NET. Is there a way to do it?

Nginx to serve downloadable S3 files

I want to serve downloadable files from S3 through Nginx to internal people.
I tried rufuspollock/s3-bucket-listing, which worked perfectly. But it need bucket to be public. I don't want to make bucket public.
Is there any other way to do this possible ?
This will not work the way you expect. Reason being the endpoints will return XML, so what you need is a web interface which then interfaces with S3 and provides you a folder like interface.
Below thread has a lot of interesting options you can explore
Directory Listing in S3 Static Website

Setting up wordpress to use remote cloud based storage

I have a site with a large number of images, I'd like to host these on a remote cloud storage solution as we're getting close to our storage limit on the current server.
I can get a remote cloud storage service setup, what needs to be done on wordpress configuration to use this as the new folder for uploads?
Thanks
Specifically for AWS S3:
The company I work for use this: https://deliciousbrains.com/wp-offload-s3/ and it's worked a treat!
This should handle the automatic upload of your old media, plus updating your posts/pages. To be safe, download a local copy of your WP and database, and run all it locally using a test bucket. Or, have a back up on to hand if the upload doesn't work. Can't be too safe!
We've only had one issue with it this past week and it's when you upload a file but change the file extension afterwards, it never off-loaded that particular image to S3 and continue to load the old /wp-content/<year>/<month> version.

AWS Elastic Beanstalk Asp.Net : Cannot view image under my domain after uploading

I have installed AWS SDK for .NET, and by using the toolkit for VS2013 I managed to deploy my application with no problem. The ElasticBeanstalk creates the bucket automatically and names it like elasticbeanstalk-eu-west-1-416461029999
The application has a file uploader which saves the user selected file under the bucket above. My problem is I can view the image by the AWS Explorer, but I would like to view the file by a browser under the domain like www.mydomain.com/Images/filename.jpg
The documentation for static sites says the bucket has to have the same name as the domain name, but the Elastic Beanstalk names the bucket automatically and it is not possible to change it after...
I would really appreciate any help, thanks...
1) First of you have to set ACL permission (Public Read,Write) for particular file
2) you could not use to see image directly Bucket URL. AWS provide "Distribution URL" for file display or view. so you can view file using Distribution URL

Drupal 6: Zencoder and S3 Access Issues

My 2 fundamental problems are getting zencoder to save converted videos to my s3 bucket and getting drupal to access s3 correctly . I set up zencoder, s3 and all the other video modules mentioned on every "set up s3 and zencoder in drupal" tutorial you can find on the web and did all the required configuration but still cannot resolve the issues I'm having.
When a video is uploaded on my site, it is saved into both my dev.myurl.com/sites/default/files/videos/original/ folder and the sites/default/files/videos/original folder in my s3 bucket, transcoded to mp4 then 5 thumbnails are saved in the proper folder in my s3 bucket but the converted video is sent to zencoder's own temporary location and not the sites/default/files/videos/converted folder its supposed to make in my s3 bucket. When I try to play the video, it says "This video is currently being processed. Please wait.". When I go to edit video and play it from there, it plays it from my dev.myurl.com/sites/default/files/videos/original/ folder. The thumbnails in s3 are not being used either and I'm stuck with the default.
I know this may seem like a common problem that could be solved by reading other threads but I've been reading them all week and to little avail.
I just fixed it this morning. It was an issue with the video presets table in the database that was resolved by reinstalling the video module. I was under the impression that the encoding and storage of videos was not working on my site because Zencoder or S3 were not set up properly and that the error was occurring outside of drupal, but it turned out the conversion presets in video configuration were never carrying over due to a missing table in the database. Reinstalling recreates the tables thus eliminating the database issues.

Resources