This topic is locked

Invalid Path Character When Uploading Files

6/25/2013 4:32:56 PM
ASPRunnerPro General questions
M
mfred author

This is regarding a 7.2 application which I wrote. A form is getting the following error when replacing files during editting an entry. it does not matter whether or not the file names are the same.
"Server.MapPath() error 'ASP 0173 : 80004005'
Invalid Path Character
/HospitalityUSA_Developer/include/aspfunctions.asp, line 2840
An invalid character was specified in the Path parameter for the MapPath method."
ADDENDUM: I have narrowed down the issue. The error actually occurs when deleting multiple files, even if I am not replacing the files. I get the error both from the live website and the local version accessed via the "view in browser option".

Admin 6/27/2013

Try to use 'Absolute path' option when you specify upload folder. Some web server are configured the way that doesn't allow the use of .. characters in path.

M
mfred author 6/27/2013

I have applications done in earlier ASPRunner which upload and delete with use of relative paths. As i noted, I discovered the issue involves file deletion. There is no problem uploading files when only uploading. The problems occur when I am deleting files, even if only deleting files. I had uploaded the project to the demo account and emailed you directly.

M
mfred author 6/28/2013

I have tested the absolute path. It did not fix the issues. Plus the error occurs in your demo site as well.

M
mfred author 7/1/2013

I found the cause of the file deletion issue. Commas in the file names. I was using the customer files. Each submission has some files with commas in the file names. When I removed the commas, the files deleted without the errors. i repeated this multiple times.