By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

Getting this error while uploading file...

P: 17
Hi All,

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

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

[HTML]
Set objSmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
For Each objFile In objSmartUpload.files
If objFile.Size>10048000 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.ismissing Then
strSaveAsFilename = GetSaveAsFilename(strFileID)
strOriginalFilename = objFile.filename
strContentType = objFile.ContentType

objFile.saveas(strPath & strSaveAsFilename)

End If
Next

Set objSmartUpload = Nothing
[/HTML]
Feb 20 '08 #1
Share this Question
Share on Google+
1 Reply


shweta123
Expert 100+
P: 692
Hi,

Please refer this Link


Hi All,

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

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

[HTML]
Set objSmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
For Each objFile In objSmartUpload.files
If objFile.Size>10048000 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.ismissing Then
strSaveAsFilename = GetSaveAsFilename(strFileID)
strOriginalFilename = objFile.filename
strContentType = objFile.ContentType

objFile.saveas(strPath & strSaveAsFilename)

End If
Next

Set objSmartUpload = Nothing
[/HTML]
Feb 20 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.