It is currently March 29th, 2024, 8:30 am



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Avoid char combinations when randomizing names.
PostPosted: April 18th, 2023, 7:11 am 

Joined: November 3rd, 2019, 1:30 pm
Posts: 79
Hi Freddy,
In TC I'm using feature of randomize file name when uploading files. I'm using letter and numbers.
From time to time some files where bloced after uploading.

Short investigation showed that the combination of number and "yo" makes file to be blocked. Example:
hb1xxvu233mj60o355yo4c.mp4
has 5yo as a part of name which is considered as 5 years old. That's why the file is blocked.

So my question is: if it's possible to have the feature to ban some combinations for randomizing file name? As in this example I would like to ban phrase "yo", not all the letters or numbers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Avoid char combinations when randomizing names
PostPosted: April 18th, 2023, 9:20 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Hi,

you can do this with replacements.

In "REPLACEMENTS" -> "Subject" tab -> choose "Apply to" as "Filename" and add a simple replacement:

Search for:
Code:
yo


Replace with:
Code:
(leave empty)


Or you can even combine multiple combinations with a single regex replacement:

Search for:
Code:
(yo|ho|bo|etc|etc)


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC