Forums
This topic is locked
how to use filename with rename upload?
Posted 04 Feb 2011 15:51:38
1
has voted
04 Feb 2011 15:51:38 Didier Glorieux posted:
Hi guys,just a short question.
after I use the rename upload file, I want to use the changed name to update my db.
now I have code like
< %' *** Rename Uploaded Files 1.8.1 If (CStr(Request.QueryString("GP_upload")) <> "") Then Dim REUF_renameMask REUF_renameMask = Fnaam & ".##ext##" RenameUploadedFiles pau_thePath, pau_nameConflict, REUF_renameMask end if %>
If after this code I do an update of the db with the filename as : REUF_renameMask then I get in the db the field for example : test.##ext##
but the file is well uploade as : test.pdf.
any idea how I can use the REUF_renameMask or what else do I have to use as variable?
thanks for any clue or help.