Forums

This topic is locked

Pure Asp add on Pack

Posted 14 Dec 2003 20:36:40
1
has voted
14 Dec 2003 20:36:40 Darren d posted:
When I attach this behavior (delete file before record) to any delete record page the page stops working altogether. Most likely user error but I can't find any problems with paths or anything else. Thoughts? When the behavior is removed the page will start working as before, and remove the record, just won't remove the file.

here is the delete file code (images is both the field name where the full file path is stored on the database and the file name also):
<%
' *** Delete File Before Delete Record 1.6.0
If (CStr(Request("MM_delete") <> "" And CStr(Request("MM_recordId") <> "" Then
Dim DF_filesStr, DF_path, DF_suffix
DF_filesStr = "images"
DF_path = "images"
DF_suffix = "_small"
DeleteFileBeforeRecord DF_filesStr,DF_path,MM_editConnection,MM_editTable,MM_editColumn,MM_recordId,DF_suffix
end if
%>





Edited by - dhere38 on 15 Dec 2003 01:39:34

Replies

Replied 15 Dec 2003 16:48:59
15 Dec 2003 16:48:59 Patrick Woldberg replied:
If you store the full path in the database you should leave the path in the Delete File Befor Record behavior empty.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 16 Dec 2003 06:04:10
16 Dec 2003 06:04:10 Darren d replied:
I left the path empty and now the page just wants to hang. Any other thougts? It's getting closer. Thanks

Edited by - dhere38 on 16 Dec 2003 06:04:53

Reply to this topic