close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Renaming Filenames with 2 extensions

Thread began 6/29/2010 9:48 am by deafboyz_audio386924 | Last modified 7/06/2010 1:08 pm by deafboyz_audio386924 | 1754 views | 5 replies

deafboyz_audio386924

Renaming Filenames with 2 extensions

I have a need to upload 2 copies of a image.... one 100 X 75 (small) and one 600 X 400 somethin (large) with 2 inner extensions to differentiate

The upload works fine.... What I want to do is name one " black_lab.small.jpg " and then name the other one " black_lab.large.jpg "

I can do this fine up until I encounter that same filename a 2nd time. WHen the script renames the duplicate filename with a _1 via "[NewFileName]_[Increment]"
the name comes out as " black_lab.small_1.jpg

I have tried the following

"[NewFileName]_[Increment]".small
"[NewFileName]_[Increment].small"
"[NewFileName]_[Increment]".".small"

I have even tried putting it like this:
'FileName' => "[FileName].small",
'FileName' => "[FileName]".".small",

plus a few others....


I have tried multiple ways and they all some out with the _[increment] on the outside, not the inside...

So how Can I get the filenames to be

example_3.small.jpg and not example.small_1.jpg



Thanks ahead for your help....

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...