Failed during stage 'deploying site': Invalid filename 'xxx.jpg?auto=compress,format'. Deployed filenames cannot contain # or ? characters

I’m facing problems deploying.
I’m using Prismic as a CMS and I get the following output after trying to deploy:

6:11:15 PM: failed during stage ‘deploying site’: Invalid filename ‘media/1fc07d0f648bb5e6c7512fa4686bcfa9c286e061_0-7.jpg?auto=compress,format’. Deployed filenames cannot contain # or ? characters.

Funny thing, when I retry to deploy, it breaks on another image every time. The added “?auto=compress,format” breaks the build.

Is there any way to bypass this problem through Netlify?
I’m using Ubuntu Trusty 14.04. Does this affect this problem?

Your OS has no impact on the error, it is as stated, simply:

Deployed filenames cannot contain # or ? characters

This is what the web standard says - ? is for query string params, and # for anchors, neither of which can be “published” in a file-based URL. Hopefully you can create output that doesn’t have those invalid characters as filenames, since otherwise, we cannot deploy your site.

Or put another way, the way to bypass the failures is not to do the invalid thing :slight_smile: