473,496 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting this error while uploading file...

17 New Member
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
1 9235
shweta123
692 Recognized Expert Contributor
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

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

Similar topics

5
17464
by: ok | last post by:
Hello, Q: How do I get image width and height before uploading an image? This because, I want to restrict people uploading huge files. Thanks in advance
5
1480
by: hb | last post by:
Hi, In my ASP.Net application 'MyWebApp' , the mode="StateServer" in <sessionState> of Web.config file, and the ASP.NET State Service is set to start automatically on the server. But every...
2
1373
by: asad | last post by:
Hello friends, i need some help in getting uploaded file name, i am uploading 2 files and i want to get only the filename of these 2 file not a full path so pls tell me which function or technique...
0
3691
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
3
4912
by: J055 | last post by:
Hi How do I tell the user he has tried to upload a file which is too big... 1. when the httpRuntime.maxRequestLength has been exceeded and 2. when the uploaded file is under then...
1
2063
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running...
4
6193
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for...
1
1341
by: cwfontan | last post by:
I am uploading a file renaming it with text from input here is the sql insert code and error im getting. If you need more of the code let me know.. This exact code is working when inserting into...
4
4086
rahulephp
by: rahulephp | last post by:
i think i am missing something in the below script: It shows error an do not upload files to destination: Let me know how to solve this: <?php if (isset($_POST)) { $uploadArray=...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.