We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Slugify and Sanitize filename on file upload

James Blair November 26, 2014 by James Blair

In case a client uploads a file that has a filename that is weird and will cause things to break -- see here Broken File Upload -- I've tried getting the client to simply name things more conventionally, but that doesn't seem to stick with them.

Any chance I can manipulate what that filename is uploaded as, so I can prevent them from breaking things?

>>>>>>> Unanswered <<<<<<<
6 Replies