The Squarespace File Renaming Bug
Uploading files to Squarespace isn't exactly an intuitive process, but it generally works.
The bug strips out all of the full stops except the last one from the uploaded filename. The problem is that many scripts you may want to integrate will likely have been minimised, and the file naming convention is to place .min before the file type.
Say you upload:
You would expect to be able to link to the file using the following syntax:
However, if you call your script nothing happens.
This can lead to fruitless debugging sessions - there's nothing wrong with the script.. ..the problem is that you're not calling it because it has been renamed.
It is now called
and you can reference it with the following code
What happens if Squarespace fixes the file renaming bug?
I would hope that the fix would only apply to new files uploaded after the bug fix is rolled out. However, the bug has existed for some time now, so I'm not sure when Squarespace will get round to fixing it.
To be safe, it might make sense to strip out any extra full stops from your filenames before you upload them so that you know the system has stored them with exactly the name you want.