Issue with uploads

I uploaded new files but the year has changed. I created redirects for the old /uploads/2025 to /uploads/2026 but i’m still getting the old files. I deleted all copies and uploaded again but still getting the old files on the old url and the new files on the new URL. I’ve tried rebuilding the site a couple of times and no change.

Examples: https://rangerpicks.rugby/uploads/2025/mlr.ics vs https://rangerpicks.rugby/uploads/2026/mlr.ics

The DTSTAMP should be 20260111T212353Z for both (well actually /uploads/2025/mlr.ics should redirect to /uploads/2026/mlr.ics

Help?

I tried my best to recreate this behavior on my own test blog but couldn’t. Redirects works for me.

Are you sure /uploads/2025/mlr.ics has been deleted from uploads? Also, does your redirect setup look like this?

I deleted all files *.ics. I can’t specifically delete /uploads/2025/mlr.ics because the UI doesn’t have folders. And yes, thats exactly what the redirect looks like.

I think what you want instead of uploads (related to your “replace a file with the same file name”) is actually to put a static file in your blog theme. This would work far better for your use case. In your theme, create a file with the file name static/mlr.ics

That file will always be copied directly to your site at {{ .Site.BaseURL }}/mlr.ics

1 Like

Hmm, but there’s not really an API to update the static files, is there? I’m trying to avoid manual steps as much as possible as this only happens a couple of times a year and I don’t want to rely on memory for the manual steps :slight_smile:

You can use GitHub and sync your theme that way.

Turned out this was a bug, now squashed by @manton:

Fixed not fully deleting uploaded files, only removing them from the CDN and not your own domain name.

1 Like