Print Page | Close Window

Need Help in Uploading Files

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14410
Printed Date: 12 April 2026 at 5:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Need Help in Uploading Files
Posted By: mbehringer
Subject: Need Help in Uploading Files
Date 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




Replies:
Posted By: dj air
Date 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.



Posted By: mbehringer
Date 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


Posted By: WebWiz-Bruce
Date 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 '\'


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mbehringer
Date 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



Posted By: WebWiz-Bruce
Date 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'


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mbehringer
Date 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
   




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