{"id":11006,"date":"2026-02-09T10:00:29","date_gmt":"2026-02-09T16:00:29","guid":{"rendered":"https:\/\/infiniteuploads.com\/?post_type=docs&#038;p=11006"},"modified":"2026-03-31T23:54:39","modified_gmt":"2026-04-01T04:54:39","password":"","slug":"default-file-and-folder-exclusions","status":"publish","type":"docs","link":"https:\/\/infiniteuploads.com\/docs\/advanced-configuration\/default-file-and-folder-exclusions\/","title":{"rendered":"Default File and Folder Exclusions"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p>Infinite Uploads automatically excludes certain <strong>log, error, and temporary<\/strong> files and folders from sync. These items can sometimes be part of your WordPress Media Library and often change constantly, which can slow down syncing and create unnecessary background work.<\/p>\n\n\n\n<p>These default exclusions apply even if you haven&rsquo;t configured any custom exclusions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-s-excluded-automatically\">What&rsquo;s excluded automatically<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Common log and error locations<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/wc-logs\/<\/code> (commonly used for logs)<\/li>\n\n\n\n<li><code>\/php-errors\/<\/code><\/li>\n\n\n\n<li><code>\/logs\/<\/code><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Common error\/log files<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/error_log<\/code><\/li>\n\n\n\n<li><code>debug.log<\/code><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Log file name matching<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>.log<\/code> (substring match)<\/li>\n<\/ul>\n\n\n\n<p>Because <code>.log<\/code> is a substring match, Infinite Uploads will exclude many filenames that <strong>end with<\/strong> <code>.log<\/code> (and also any filename containing <code>.log<\/code> in the name).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"temporary-folders\">Temporary folders<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/tmp\/<\/code><\/li>\n\n\n\n<li><code>\/temp\/<\/code><\/li>\n\n\n\n<li>Other temp-like locations (folders with similar &ldquo;temp&rdquo; naming patterns)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-the-matching-works\">How the matching works<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>These exclusions are intended to match <strong>paths and filenames found inside your uploads directory<\/strong> (for example, content under <code>wp-content\/uploads\/<\/code>).<\/li>\n\n\n\n<li>Directory exclusions (like <code>\/wc-logs\/<\/code> or <code>\/tmp\/<\/code>) apply to everything inside those folders.<\/li>\n\n\n\n<li>Filename exclusions (like <code>debug.log<\/code> or <code>\/error_log<\/code>) apply wherever those files appear under uploads.<\/li>\n\n\n\n<li>The <code>.log<\/code> rule is broader because it&rsquo;s a <strong>substring match<\/strong>, not an &ldquo;ends-with only&rdquo; rule.<\/li>\n<\/ul>\n\n\n\n<p><strong>Examples<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>wp-content\/uploads\/wc-logs\/&hellip;<\/code> &rarr; excluded<\/li>\n\n\n\n<li><code>wp-content\/uploads\/debug.log<\/code> &rarr; excluded<\/li>\n\n\n\n<li><code>wp-content\/uploads\/2026\/02\/something.log<\/code> &rarr; excluded (matches <code>.log<\/code>)<\/li>\n\n\n\n<li><code>wp-content\/uploads\/some-plugin\/logs\/&hellip;<\/code> &rarr; excluded (matches <code>\/logs\/<\/code>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-infinite-uploads-excludes-these-by-default\">Why Infinite Uploads excludes these by default<\/h3>\n\n\n\n<p>These paths are commonly used for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Debug output<\/li>\n\n\n\n<li>Error logs<\/li>\n\n\n\n<li>Temporary processing files created by plugins<\/li>\n<\/ul>\n\n\n\n<p>They tend to be high-churn and not media assets you want delivered via CDN.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-your-own-exclusions\">Adding your own exclusions<\/h3>\n\n\n\n<p>If your site has other plugin-generated cache\/log\/temp folders under <code>uploads\/<\/code>, you can add custom exclusions <strong>after your initial sync has completed<\/strong> (custom exclusions are not a &ldquo;pre-sync ignore list&rdquo;).<\/p>\n\n\n\n<p>(See: <strong>Exclude files and folders from cloud sync<\/strong>.)<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Infinite Uploads automatically excludes certain log, error, and temporary files and folders from sync. These items can sometimes be part of your WordPress Media Library and often change constantly, which can slow down syncing and create unnecessary background work. These default exclusions apply even if you haven&rsquo;t configured any custom exclusions. What&rsquo;s excluded automatically Common [&hellip;]<\/p>\n","protected":false},"author":3787,"featured_media":11010,"template":"","meta":{"_acf_changed":false,"wds_primary_doc_category":0,"wds_primary_doc_tag":0,"footnotes":""},"doc_category":[168],"doc_tag":[],"class_list":["post-11006","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-advanced-configuration"],"acf":[],"year_month":"2026-04","word_count":292,"total_views":"202","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Blake Whittle","author_nicename":"blakew","author_url":"https:\/\/infiniteuploads.com\/blog\/author\/blakew\/"},"doc_category_info":[{"term_name":"Advanced Configuration","term_url":"https:\/\/infiniteuploads.com\/docs-category\/advanced-configuration\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs\/11006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/users\/3787"}],"version-history":[{"count":0,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs\/11006\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/media\/11010"}],"wp:attachment":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/media?parent=11006"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/doc_category?post=11006"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/doc_tag?post=11006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}