themaCreator http://creator.themasoftware.com/forum/ |
|
Use folder name instead of file name for uploading to hosts. http://creator.themasoftware.com/forum/viewtopic.php?f=3&t=7163 |
Page 1 of 1 |
Author: | abegreen [ August 31st, 2021, 10:31 am ] |
Post subject: | Use folder name instead of file name for uploading to hosts. |
I've seen that compression uses folder name for archive name instead of file name and I like it. I suggest an option to use folder name over filename when uploading files to hosts. That way it would be possible to use same replacements for file name as I use for titles instead of creating new. Also file names are very blunt and downloaders would have better titled files. Downloaded file would be named exactly as title/subject. |
Author: | Freddy [ August 31st, 2021, 11:31 am ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
You can already do that. In "Templates" -> select needed post type tab -> "{#fileUploadName#}" tab -> set it to Code: {#folderName#} However if you have multiple files in the folder which needs to be uploaded separately -> then all their filenames will be the same. |
Author: | abegreen [ September 1st, 2021, 11:50 am ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
Beautiful! |
Author: | abegreen [ March 19th, 2023, 11:06 am ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
This replacement works only when it's alone. When I use this replacement, all filename replacements that come after it, are ignored. And in case where the next replacement is regex: ",|'|\[|\]|\(|\)|\{|\}|<|>|\!|\$|&| |-" into "." filename ends up being literary "#folderName#.mp4" Something is going on that I can't quite figure out. |
Author: | Freddy [ March 21st, 2023, 9:03 am ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
2.64 * Added new tempplate in "Templates" -> "{#fileUploadName#}" tab. Upload filename template. Default = empty, normal filename will be used. You should update new template for needed post type and delete that replacement (will update my answer above as well). |
Author: | abegreen [ May 15th, 2023, 1:26 pm ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
Now it ignores random filename option for image hosts. |
Author: | Freddy [ May 15th, 2023, 6:51 pm ] |
Post subject: | Re: Use folder name instead of file name for uploading to ho |
Tested. Everything seems fine. Make sure you have enabled it for image host in "HOSTS" -> "Images" -> select needed host -> under "Other settings" -> "Randomize filenames" -> press "Update" button. If I misunderstood -> PM me with more details and do this: "Help" menu (at the top) -> "Support" -> "Compress" -> send me the file which it opens. Will review your settings. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |