Renaming content server file (no file extension) to PDF

@mlauber71 I hope you don’t mind me tagging you but I found your very helpful post Copy & Rename a file diffrent directory - #5 by mlauber71

Unfortunately, the file that I am trying to re-save has been downloaded from a URL so is called Content Server but has no file type. I am trying to keep the same name but rename the file with the extension .pdf.

I have replicated your workflow but made a couple of tweaks that I was hoping would add the file extension PDF to my original file.

After the URL to File Path node I can see that the File extension is indeed empty so i’ve used a constant value column to add the extension PDF.

image image

I’ve updated the snippet nodes to create my new file and new file path.

image

Using the Transfer File node, I transfer from the original file path (without extension) to my new path (with extension).

Unfortunately, the Transfer File node is recognising my new file name ‘contentserver.PDF’ as a new folder that needs to be created (even though i’ve left the create missing folder checkbook unticked) and then just re-saving the original contentserver file without the extension into this folder (as per below screenshots)

image

image

Do you happen to know why this may be happening? And also how I can go about adding an extension to file?

I thought I had it with the help of your great workflow and although i feel i’m close to success, I can’t quite get across the line.

Any help would be greatly appreciated.

Thanks.
Pete

@taylorpeter55 I will try to take a look

1 Like

@mlauber71 thanks very much, that would be really appreciated.

Hi @taylorpeter55,

Upon a quick look at your workflow, it looks like you’re using the Transfer Files node instead of the Transfer Files (Table) node.

In the Transfer Files node, you are only able to specify a destination folder, which is where you’re passing the folder name. This node does not allow you to define new file names or change extensions.

If you want to rename files during transfer, you need to use the Transfer Files (Table) node instead, as in the example workflow you are referencing.

Best,
Keerthan

3 Likes

Hi @k10shetty1 ,

Thanks so much! I didn’t know about the different functionality.

Pete

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.