It is currently March 28th, 2024, 1:18 pm



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Use folder name instead of file name for uploading to hosts.
PostPosted: August 31st, 2021, 10:31 am 

Joined: March 15th, 2020, 9:53 pm
Posts: 91
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: August 31st, 2021, 11:31 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: September 1st, 2021, 11:50 am 

Joined: March 15th, 2020, 9:53 pm
Posts: 91
Beautiful!


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: March 19th, 2023, 11:06 am 

Joined: March 15th, 2020, 9:53 pm
Posts: 91
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: March 21st, 2023, 9:03 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: May 15th, 2023, 1:26 pm 

Joined: March 15th, 2020, 9:53 pm
Posts: 91
Now it ignores random filename option for image hosts.


Top
 Profile  
Reply with quote  
 Post subject: Re: Use folder name instead of file name for uploading to ho
PostPosted: May 15th, 2023, 6:51 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


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

Who is online

Users browsing this forum: No registered users and 18 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:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC