Forums
This topic is locked
Delete File Before Record An invalid '/' or '\' wa
Posted 21 Oct 2003 19:00:39
1
has voted
21 Oct 2003 19:00:39 Kenny Darcy posted:
Hi yea,I am using delete file before record, the delete works find by itself but when I apply the extension I get the following error on my page.
Error Type:
Server.MapPath(), ASP 0174 (0x80004005)
An invalid '/' or '\' was found in the Path parameter for the MapPath method.
/flower/ScriptLibrary/incPUAddOn.asp, line 24
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
Page:
POST 46 bytes to /flower/estate1/cp/delp4s1.asp
POST Data:
Submit=Delete&MM_delete=delpfs&MM_recordId=147
I have checked to see what line 24 is and include it below.
DF_filesArr = split(DF_filesStr,","
while not DF_files.EOF
for DF_fi = 0 to UBOUND(DF_filesArr)
DF_file = Trim(DF_files.Fields.Item(Trim(DF_filesArr(DF_fi))).Value&""
if DF_file <> "" then
DF_fullFile = Server.MapPath(DF_path & DF_file) <!-- on the left of this is line 24 of the incPUAddon -->
if DF_fso.FileExists(DF_fullFile) then
DF_fso.DeleteFile(DF_fullFile)
end if
if DF_suffix <> "" then
DF_fullFile = Server.MapPath(DF_path & getThumbnailName(DF_suffix,DF_file))
if DF_fso.FileExists(DF_fullFile)
In the delete files options and the upload browser box my path is ../proppics as that is where my Dir is where my images are kept. I would like to resolve this as soon as is possible. Thanks and regards
Kenny
Replies
Replied 23 Oct 2003 10:43:56
23 Oct 2003 10:43:56 Patrick Woldberg replied:
What is the path you used in the extension?
btw. Support forum for the Pure ASP Upload Add-on can be found at www.dmxzone.com/forum/default.asp?NewsId=3331
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
btw. Support forum for the Pure ASP Upload Add-on can be found at www.dmxzone.com/forum/default.asp?NewsId=3331
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------