Jump to content

Page File names with special characters


Jim Bailie
 Share

Recommended Posts

Hello,

So we're prepping to migrate a whole lot of pdf files into a new PW site and many of these files have a '$' in them indicating that they contain pricing information.

Well pdf files with a '$' don't migrate so well into PW. In fact, they don't migrate at all. And I get it too.

However, this is a very large company and these files are a source of truth throughout other systems as well. So, incredibly, this may actually be a show stopper.

Any ideas on how this might be turned off in the core? I've tried everything else...I think.

Link to comment
Share on other sites

1 hour ago, Jim Bailie said:

Well pdf files with a '$' don't migrate so well into PW. In fact, they don't migrate at all.

Could you give more details about what you mean by this? Are you trying to import files via the API and this fails somehow? Or you mean that the $ character is not retained in the filename after you add the file to a Files field?

If it's the latter I wrote a tutorial you might find useful:

 

  • Like 1
Link to comment
Share on other sites

6 hours ago, Robin S said:

Could you give more details about what you mean by this? Are you trying to import files via the API and this fails somehow? Or you mean that the $ character is not retained in the filename after you add the file to a Files field?

We are transferring via API and it works fine. It's just that when event_concept_test$$$.pdf is loaded via api or manually, it DOES NOT retain the $'s

And your tutorial is wonderful, but I really worry about confusion among the admins. If I understand correctly they won't see the non-sanitized file name and could lose track of which file is which if they check their work in the front-end.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...