Laravel S3 Browser

Sagar Chauhan
3 min readApr 25, 2020

Laravel S3 browser helps you browse your S3 bucket and view the files in it, directly in your browser.

Photo by Pau Casals on Unsplash

Let’s accept the fact, S3 buckets can get messy. On top of it, you can’t delete anything without cross-checking or viewing the files.

Specially if multiple people access the bucket, to maintain a directory structure can get daunting sometime, at least in the beginning, then of course everyone gets the hang of it.

But the bigger problem is that, there exists a lot of junk files in our buckets, some of them were once used, some were duplicate, some we are unsure of, do we need or not, but we still keep it.

This creates even a bigger problem, the AWS S3 bucket storage cost, it keeps on inflating because of our care free attitude.

But, to be fair, the fear is real, specially with many people in the team, you wouldn’t want to delete a file only to know that it was important for some module or some web page created by someone else, specially with the images.

The same thing happened with me.

The solution was easy, check each file and delete it

But to do that, I need to view each of the file. Now, you can’t simply change the permission of each file, specially if the images have been uploaded by users or are private files. Or you can’t download each file and check.

Facing this issue, I started searching for possible client side solution, which can help me navigate through the bucket and make sense out of it.

To be honest, I did found, few client side solution, one of them is S3 browser for Google Chrome.

Its a nice sweet plugin, but what lacks here is the capacity to view the images or files directly in my browser, client side.

I can’t again open each file and see whether do I need to delete it or download it or move it.

Finally, failing to find anything, I thought of creating a S3 Browser myself.

It wasn’t that big a task, given the fact, that in my project www.theveu.com, I was already using Laravel, S3 Storage and Aws SDK.

Here’s how the project turned out to be:

Laravel S3 Browser Image Preview
Laravel S3 Browser Non-Image preview

I have also shared the entire project on github under MIT license. I would be happy if anyone would want to collaborate on this and suggest some other features if they like the project.

I created this project purely out of my own requirement.

Below embedded is the repository !

Cheers !

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Sagar Chauhan
Sagar Chauhan

Written by Sagar Chauhan

Hustler | Geek | Bootstrapper | PolyMath

No responses yet

Write a response