Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - using a physical path to upload files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedusing a physical path to upload files

 Post Reply Post Reply
Author
tiktakit View Drop Down
Newbie
Newbie


Joined: 07 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote tiktakit Quote  Post ReplyReply Direct Link To This Post Topic: using a physical path to upload files
    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 ?
Back to Top
tiktakit View Drop Down
Newbie
Newbie


Joined: 07 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote tiktakit Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2005 at 8:46am
can any1 help pls ?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
tiktakit View Drop Down
Newbie
Newbie


Joined: 07 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote tiktakit Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.