Filenames for Document Uploads

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 1, 2010   (RSS)

My apologies if this is already covered in the forums somewhere - I have searched but can't find an answer to my query.

I am integrating CMS builder into my client's website to allow restaurant menus to be uploaded in pdf format.

When uploading pdf's CMS builder automatically affixes the filenames with sequential numbering. For example, the first time I upload set_menu.pdf it is uploaded as set_menu_001.pdf. If I want to overwrite the menu, and go into the admin system to remove and then reupload the menu, it uploads as set_menu_002.pdf.

My problem is that I want to create permanent links to the menus from other areas within the website, eg I want to create a permanent link on the homepage from a feature panel to set_menu.pdf (this is just one example). I also release html newsletters for the client that need to have permanent links to items ongoing. Whilst I could create links based on the current upload filenames, as soon as the client uploads a new menu to replace the previous version, the links will be broken.

Is there any way to force the upload manager to drop the affixes?

This needs to be a simple solution for the client to maintain - they are not IT savvy and could easily get in a pickle if I don't provide them with something manageable to maintain. (My apologies if the solution is simple and I'm overlooking something obvious here.)

Many thanks for your help.

Re: [Jason] Filenames for Document Uploads

Thanks Jason - I'd forgotten that I created a custom upload directory for the pdf documents and for demonstration purposes, I'd hard-wired the links into that directory for the pdf menu downloads. Therefore, when I started uploading the menus via the CMS the affixes were added because the menus were already in that directory. Creating single records isn't going to work for this client as they want to choose the order of the menus on the menu download page, but your suggestion works just as well with multi-records. Many thanks for your help!