Todd
New Member
USA
63 Posts |
Posted - 06 May 2010 : 23:29:52
|
I used the timestamp alternative by editing the clsupload.inc file. I wasn't looking to mess with the avatar uploads, only the images that get uploaded and placed in the posts.
In the following section of that file;
'--- Get the file name --- lngPosFilename= InstrB(lngPosBoundary, strBinRequest, _ UnicodeToBinary("filename=")) if (lngPosFileName <> 0) And _ (lngPosFileName < InstrB(lngPosEnd, strBinRequest, strBinBoundary)) Then lngPosBeg = lngPosFileName + 10 lngPosEnd = InstrB(lngPosBeg, strBinRequest, UnicodeToBinary(Chr(34))) strFileName = BinaryToUnicode(MidB(strBinRequest, lngPosBeg, _ lngPosEnd - lngPosBeg))
I added the following line directly after to adjust the filename; strFileName = DateToStr(DateAdd("h", dtDateTime, strForumTimeAdjust)) & "_" & strFileName Worked fine for me. Didn't affect the avatar upload. I'll see how things go, works great so far. |
Admin for the Tyco Collector's Forum
|
Edited by - Todd on 06 May 2010 23:31:20 |
|
|