themaCreator
http://creator.themasoftware.com/forum/

How to set a custom name of folder/file before compressing.
http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=7469
Page 1 of 1

Author:  abuzyiadkhadamat [ September 23rd, 2023, 9:47 pm ]
Post subject:  How to set a custom name of folder/file before compressing.

hi, how can I make TC set a custom name for the file or folder before compressing it and uploaded to host,
I try replacement section to make this but when the file or folder compressed and uploaded to the host it upload with the original name of the file/folder.

are there any way to make this ?

thanks.

Author:  Freddy [ September 24th, 2023, 6:42 am ]
Post subject:  Re: how to set a custom name of folder/file before compressi

Hi,

"TEMPLATES" tab -> choose needed post type tab -> just change {#fileUploadName#} sub-template to what you need.

Author:  abuzyiadkhadamat [ September 24th, 2023, 10:47 pm ]
Post subject:  Re: How to set a custom name of folder/file before compressi

hi, i try the steps you show me and sadly it didn't work

Author:  Freddy [ September 25th, 2023, 7:04 am ]
Post subject:  Re: How to set a custom name of folder/file before compressi

It works fine. Just tried.

Do this: "Help" menu (at the top) -> "Support" -> "Compress" -> send me the file which it opens (via PM on any file host).

Will review your settings.

Author:  abuzyiadkhadamat [ September 25th, 2023, 4:46 pm ]
Post subject:  Re: How to set a custom name of folder/file before compressi

hi there, i send the support compress file please check the issue.

thanks.

Image
Image

Attachments:
File comment: support compress file
[2023-09-25 19.28.30] userFiles.zip [23.21 KiB]
Downloaded 57 times

Author:  Freddy [ September 25th, 2023, 5:23 pm ]
Post subject:  Re: How to set a custom name of folder/file before compressi

Everything is correct and works fine.

You set the fileUploadName template to be:
Code:
helloWorld-{#folderName#}


In your screenshot it's as you wanted:
Code:
HelloWorld-Test_Themacreate.rar


"test_themeCreate" is your folder name (you set in the template yourself to include folder name).

If you needed filename just set it to:
Code:
helloWorld-{#fileName#}


And it's capitalized because you enabled that option in "Settings" -> "Process" -> "Files".

Everything is working correctly as you have in settings.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/