The other day a client was unable to access video files through any of our usual methods of file sharing:
The files we needed to share were examples of the animations we would be including into their site build. We could have uploaded them to Vimeo/YouTube and shared the link, but that seemed like more work than was needed (especially seeing as their were 30 files and they needed privacy settings).
I decided to create a folder on our web server and upload all the files to there for the client to download. These days, however, directory listings are turned off by default by many hosting companies which means I would either need to create a HTML file with the links to the 30 files, or I could switch on Directory Listing for that folder.
There was no immediate access to Apache to do the work so I used a
.htaccess file to provide folder level updates. To do this there are a few steps:
FTP/connect to your server and create a new folder.
Inside that folder create a new file and name it .htaccess (you may need to turn on ‘view hidden files’ if you can’t see this after you’ve created it)
Inside that file addOptions +Indexes
That’s it. Now that you’ve added that you will be able to see the contents of that folder, and the client can now download all of the files to see the animations.
Before you leave
Delivered to 101,879 developers every Monday
This is the first ever newsletter that I open a music playlist for and maximize my browser window just to read it in peace. Kudos to @uidotdev for great weekly content.
The Bytes newsletter is a work of art! It's the only dev newsletter I'm subscribed too. They somehow take semi boring stuff and infuse it with just the right amount of comedy to make you chuckle.
Bytes has been my favorite newsletter since its inception. It's my favorite thing I look forward to on Mondays. Goes great with a hot cup of coffee!
I subscribe to A LOT of dev (especially JS/TS/Node) newsletters and Bytes by @uidotdev is always such a welcomed, enjoyable change of pace to most (funny, lighthearted, etc) but still comprehensive/useful.
Literally the only newsletter I’m waiting for every week.
Bytes is the developer newsletter I most look forward to each week. Great balance of content and context! Thanks @uidotdev.
I know I've said it before, but @tylermcginnis doesn't miss with the Bytes email. If you're a developer, you really need to subscribe
Can I just say that I giggle every time I get the @uidotdev email each week? You should definitely subscribe.