Forums
This topic is locked
Add-On Pack - Delete File and Rename File
Posted 03 Dec 2003 17:21:18
1
has voted
03 Dec 2003 17:21:18 Monique Sauvageau posted:
After adding the MM Update behavior in MX and the Pure ASP Upload 2.17behavior (with "MakeUnique" chosen for error handling of the file
name), then the "delete file before update" behavior (Pure ASP Upload
Add-on Pack), and finally the "Rename Uploaded Files" (Pure ASP Upload
Add-on Pack), I receive this error:
Microsoft VBScript runtime error '800a003a'
File already exists
D:\PATH\../../ScriptLibrary/incPUAddOn.asp,
line 134
It seems to not want to update the database (SQL). However, it does
upload the file and make it unique. Either way, it's simply not
changing the file name nor deleting the file. If I remove the "Rename
Uploaded Files" behavior the delete file works fine.
Here is line 134 of the incPUAddOn.asp:
REUF_fso.MoveFile Server.MapPath(REUF_curPath & REUF_fileName),
Server.MapPath(REUF_curPath & REUF_newFileName)
Here is the rename code:
<%
' *** Rename Uploaded Files 1.6.0
If (CStr(Request.QueryString("GP_upload") <> "" Then
Dim REUF_path, REUF_renameMask
REUF_path = "../../images/pictures/staff"
REUF_renameMask = request.Cookies("maincookie"("UserID" &
".##ext##"
RenameUploadedFiles REUF_path,REUF_renameMask
end if
%>
Please let me know if more info is needed (I am using VBScript/.asp).
Thanks!
Replies
Replied 04 Dec 2003 11:16:05
04 Dec 2003 11:16:05 Patrick Woldberg replied:
Download and install Pure ASP Upload Add-on Pack 1.7.0, there this isue is fixed
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 05 Dec 2003 17:52:04
05 Dec 2003 17:52:04 Monique Sauvageau replied:
Thanks Patrick... that did the trick!!