Prevent Thumbs.db Files From Being Created And Stored

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, September 29, 2008

Follow me on Twitter as @mattiasgeniar

By default, whenever you pick “thumbnail” or “tiles” view, in your Windows Explorer, a local cache of a pictures thumbnail will be stored in that directory, in a file called Thumbs.db. It speeds things up next time you open that directory, because it can load the image from the cache – but it also creates an extra file in every directory …

This can be annoying when you’re used to publishing things through SVN, or when uploading several directories. The silly Thumbs.db will be uploaded as well.

You can disable it by going to Tools > Folder Options and checking the option “do not cache thumbnails".

Do not cache thumbnails

Do not cache thumbnails

When you select “Apply to all folders", not a single folder on your PC will create that file. If the file already existed, it’ll still be there – so you should still manually delete those. (Start a search in your “My Computer” for “Thumbs.db”, select them all and hit the delete button)



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.