Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Again about uploading...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Again about uploading...

 Post Reply Post Reply
Author
Eurgene I View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 October 2002
Location: Russian Federation
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eurgene I Quote  Post ReplyReply Direct Link To This Post Topic: Again about uploading...
    Posted: 24 September 2005 at 11:50pm
Hi!
 
For uploading files I cannot use anything, except for Persits AspUpload component. The file with help Persits AspUpload component on is loaded on the server, but there is an error message:
 
Server.MapPath() error 'ASP 0174 : 80004005'
Invalid Path Character(s)
/cgi-bin/forum/functions/functions_upload.asp, line 146
An invalid '/' or '\' was found in the Path parameter for the MapPath method.
 
and in an edit window the image does not appear.
 
If line 146
.Files (1) .CopyVirtual strFileUploadPath and "/" and strNewFileName
I change on
.Files (1) .CopyVirtual strFileUploadPath and "" and strNewFileName

Then all passes normally: the file is loaded, seen in an edit window and appears in the message.

Any ideas?
"If you healthy one, you hadn't been examined." . All about of laboratory tests on www.primer.ru
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: 25 September 2005 at 11:11am
Looks like you have a / at the end of the uploads directory where you defined it in the admin section so your file path contained a //.

Changing the "/" to a "" eliminted one of the /


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Eurgene I View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 October 2002
Location: Russian Federation
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eurgene I Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2005 at 1:58pm

In my case there is no numeral "/" at the end of the uploads directory, what I'm defined in the admin section.

And the error message appears even if the title of the directory will consist of one word, without any "/"

In what there can be a difference of the actual server on which there is my site -  from hypothetical for which wrote code Borg?

"If you healthy one, you hadn't been examined." . All about of laboratory tests on www.primer.ru
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.