Getting this error while uploading file...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimmylee
    New Member
    • Feb 2008
    • 17

    Getting this error while uploading file...

    Hi All,

    Please help me . I am getting aspSmartUploadf ile error while uploading file
    I have already instrall aspSmartUpload. dll and aspSmartUploadu til.dll. how to solve this error. thanks.
    I get error this line [HTML]objFile.saveas( strPath & strSaveAsFilena me)[/HTML]

    Error Type:
    aspSmartUpload. File (0x80040460)
    Unable to save file (Error 1120)

    [HTML]
    Set objSmartUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")
    For Each objFile In objSmartUpload. files
    If objFile.Size>10 048000 Then

    Response.Write "<script>alert( 'Warning:Due to Company Policy,The upload file size can not larger than 10M.Please change the file.');</script>"
    else
    If Not objFile.ismissi ng Then
    strSaveAsFilena me = GetSaveAsFilena me(strFileID)
    strOriginalFile name = objFile.filenam e
    strContentType = objFile.Content Type

    objFile.saveas( strPath & strSaveAsFilena me)

    End If
    Next

    Set objSmartUpload = Nothing
    [/HTML]
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    Please refer this Link


    Originally posted by jimmylee
    Hi All,

    Please help me . I am getting aspSmartUploadf ile error while uploading file
    I have already instrall aspSmartUpload. dll and aspSmartUploadu til.dll. how to solve this error. thanks.
    I get error this line [HTML]objFile.saveas( strPath & strSaveAsFilena me)[/HTML]

    Error Type:
    aspSmartUpload. File (0x80040460)
    Unable to save file (Error 1120)

    [HTML]
    Set objSmartUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")
    For Each objFile In objSmartUpload. files
    If objFile.Size>10 048000 Then

    Response.Write "<script>alert( 'Warning:Due to Company Policy,The upload file size can not larger than 10M.Please change the file.');</script>"
    else
    If Not objFile.ismissi ng Then
    strSaveAsFilena me = GetSaveAsFilena me(strFileID)
    strOriginalFile name = objFile.filenam e
    strContentType = objFile.Content Type

    objFile.saveas( strPath & strSaveAsFilena me)

    End If
    Next

    Set objSmartUpload = Nothing
    [/HTML]

    Comment

    Working...