26 Oct Blog fixes; Solved ‘whitespace’ folders in WP-Uploads folder.
Category: Announcement

I solved problems with uploaded images in my previous posts today with a huge hand from Brian, who solved this rather peculiar problem very elegantly.

The issues were centered on the tendency of my old WordPress install putting files in a path like this;


Read on for the solution.

The obvious issue is that you can’t have folders called ‘ ‘ (in HTML, you ‘escape’ whitespace by replacing it with the symbol %20%20, like you can escape it in the C programming language with a backslash); you cannot ‘cd’ into these folders, or do anything else with them. I did manage to get them backed up, but after a WordPress upgrade to 2.3, everything was gone in the /uploads/ folder so I wanted to restore them. I couldn’t; no application seems to be able to do this.

Brian, who already makes the best FTP app out there (and the only one that could download whitespace folders, saving my ass) put together a regular expression that I could put into my Apache .htaccess file to replace any double whitespace in a requested file with a correct request. As you can see in the archives, it finally works. Thanks, Brian, and everyone who has been requesting posts older than a month (69% of blog visitors, I am looking at you), you are now free to go nuts and report problems with broken images or downloads.

Unrelated posts:

    Bricky Shirt

    By no means a replacement of the Cocoia Exploded Settings tee, but I wanted to wear this and I was told others enjoyed it as well. Represent the...

    the Cocoia WWDC shirt

    It's often said that there is great value in having a distinct shirt at WWDC, and while I'm not very preoccupied with that notion myself, I do...

    Redesigning Steam for Mac

    Steam for Mac will be available for download in a week's time. Steam, for the uninitiated, is the world's largest gaming platform, serving in...

    The first Photoshop icon.

    While I was doing some research for one of my upcoming projects today, I found the very first Photoshop icon. It's actually a tiny little photo...

You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
Leave a Reply