Forum

Thread tagged as: Question

Keeping filenames the same in Assets?

I have a list of PDFs on one site. The filenames are all fixed, but the files are replaced each year. At the moment, I FTP these files to a /download folder on the server for the client.

If I allow the customer to upload them (into Assets instead) the filenames will not be the same as they are now - because Perch doesn’t replace files in Assets but adds a new one and adjusts its filename.

Has anyone got a way of circumventing or solving this?

Graham Street

Graham Street 17 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you need a fixed URL that will always go to the latest version of a file, I would tackle that through URL rewriting rather than trying to force the file name.

But then haven't I've got to maintain the URL rewrite list instead (of uploading the files for the customer)?

PS - Happy Birthday :-)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Why? You can do it through Perch. Perch knows the path of the latest version, so point the URL at Perch and let it handle it.

OK - I'll investigate. Thx