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

  New Posts New Posts RSS Feed - Need Help in Uploading Files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need Help in Uploading Files

 Post Reply Post Reply
Author
mbehringer View Drop Down
Newbie
Newbie
Avatar

Joined: 24 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbehringer Quote  Post ReplyReply Direct Link To This Post Topic: Need Help in Uploading Files
    Posted: 24 March 2005 at 2:42pm
I hope some one can help.  I am running WebWiz fourums on a Win2k machine with IIS and have tried both aspsmartupload and Dudas. I get the popup screen to browse for the file and when i select and try upload I get this error.

Technical Information (for support personnel)

  • Error Type:
    Microsoft VBScript runtime (0x800A004C)
    Path not found
    /webwizforum/forum/functions/functions_upload.asp, line 80
  • Browser Type:
    Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
  • Page:
    POST 3028 bytes to /webwizforum/forum/upload_images.asp
  • POST Data:
    . . .
  • Time:
    Thursday, March 24, 2005, 1:34:23 PM
Any Ideas?

Thanks for all the help
Michael

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 4:02pm
please check your uplaod settings within the admin area.. make sure that the path to the folder is correct, if you think it is add or take a / at the end as it may be that causing the problem


but i think it doesn't have a / at the end.

Back to Top
mbehringer View Drop Down
Newbie
Newbie
Avatar

Joined: 24 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbehringer Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 4:43pm
It did not have the "/" so I added it and got this error.

Technical Information (for support personnel)

  • Error Type:
    Server.MapPath(), ASP 0174 (0x80004005)
    An invalid '/' or '\' was found in the Path parameter for the MapPath method.
    /webwizforum/forum/functions/functions_upload.asp, line 77
  • Browser Type:
    Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
  • Page:
    POST 3016 bytes to /webwizforum/forum/upload_images.asp
  • POST Data:
    . . .
  • Time:
    Thursday, March 24, 2005, 3:33:28 PM
  • More information:
Errored at a different line this time.

Here is line 77 thru 80 in the functions_upload script.

    If objFSO.FolderExists(Server.MapPath(strFileUploadPath & "\" & strUserFolderName)) = False Then
           
        'If the user dosen't have a folder create them one
        objFSO.CreateFolder(Server.MapPath(strFileUploadPath & "\" & strUserFolderName))

When I look in the folder there is a folder created for the user.  The script created it.

Thanks again
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2005 at 4:37am
Some servers are sesitive to whether you use '/' or '\'

Windows files paths as used in the server usually use '\'
Back to Top
mbehringer View Drop Down
Newbie
Newbie
Avatar

Joined: 24 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbehringer Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2005 at 3:15pm
if the server was sensitive to '\' vs '/' wouldn't it not have created the user folder?  The script created the user folder but errors out when it tries to write the file it is uploading.

I changed the "/" to '\' and recieve this error
  • Error Type:
    Server.MapPath(), ASP 0174 (0x80004005)
    An invalid '/' or '\' was found in the Path parameter for the MapPath method.
    /webwizforum/forum/functions/functions_upload.asp, line 77
  • Browser Type:
    Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
  • Page:
    POST 7190 bytes to /webwizforum/forum/upload_images.asp
  • POST Data:
    . . .
  • Time:
Any thoughts?

Thanks

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2005 at 4:37am
Line 77 is before the folder is created and uses the FSO object to see if the folder already exsists.

Try editing the file functions_upload.asp and change any '\' to '/' and see if that solves your problem.

Also check your path to the upload folder is correct, it should be just 'upload'
Back to Top
mbehringer View Drop Down
Newbie
Newbie
Avatar

Joined: 24 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbehringer Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2005 at 3:05pm
I changed the '\' with '/' and no go. still get the error at line 77.

I have the path in the admin setup of the forum as uploads.  I also tried /uploads and /uploads/

Still no success.

Here is what my functions_upload filelooks like.

Thanks for all the help.  Any other ideas?


'******************************************
'***       File Upload Function        ****
'******************************************

'Function to upload a file
Private Function fileUpload(ByVal strFileUploadPath, ByVal saryFileUploadTypes, ByVal intMaxFileSize, ByVal strUploadComponent, ByRef lngErrorFileSize, ByRef blnExtensionOK, ByRef strUserFolderName)

    'Dimension variables
    Dim objUpload        'Uplaod component
    Dim strNewFileName    'Holds the file name
    Dim strOriginalFileName    'Holds the original file name for those components that need to save the file first
    Dim objFSO        'Holds the file system object
   
   
   
   
    '******************************************
    '***   Create a folder for the user    ****
    '******************************************
   
       
    'Creat n intence of the FSO object
    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
   
    'See if the user already has a folder
    If objFSO.FolderExists(Server.MapPath(strFileUploadPath & "/" & strUserFolderName)) = False Then
           
        'If the user dosen't have a folder create them one
        objFSO.CreateFolder(Server.MapPath(strFileUploadPath & "/" & strUserFolderName))
   
    End If
   
    'Release the FSO object
    Set objFSO = Nothing
   
    'Add the usernames folder name to the upload folder name
    strFileUploadPath = strFileUploadPath & "/" & strUserFolderName
   

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.