Print Page | Close Window

using a physical path to upload files

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=16739
Printed Date: 28 March 2026 at 7:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: using a physical path to upload files
Posted By: tiktakit
Subject: using a physical path to upload files
Date Posted: 29 September 2005 at 6:24am
hi,
i want to use a physical path for files upload, and not a relative one.
i changed functions_upload.asp and removed all server.mapPth methods.
thought i still get an error for this line:

                    'Save the file to disk
                    .Files(1).SaveAs strFileUploadPath & "/" & strNewFileName

this is the error:

Server.MapPath() error 'ASP 0172 : 80004005'

Invalid Path

functions/functions_upload.asp, line 317

The Path parameter for the MapPath method must be a virtual path. A physical path was used.




so y do i still get it ?



Replies:
Posted By: tiktakit
Date Posted: 06 October 2005 at 8:46am
can any1 help pls ?


Posted By: dpyers
Date Posted: 06 October 2005 at 5:34pm
Do a response.write strFileUploadPath and see if it makes any sense.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: tiktakit
Date Posted: 10 October 2005 at 12:50pm
well, i did..

**

                    'Save the file to disk
                    response.write strFileUploadPath
                    response.End()
                    .Files(1).SaveAs strFileUploadPath & "/" & strNewFileName
**
i get my physical path:
D:\dubdub\lol\userbuser\NewsUse\applications\news\data\

which is ok, exists and have permissions. so what's the problem?Ouch



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net