Community discussion forum
ASP Upload Component
-
This thread is for discussions of ASP Upload Component.
-
Advertisement
Simply the fastest line-level profiler for .NET ever
“The low overhead means it has minimal impact on the execution of my program”
Mark Everest, Development Team Leader, Renault F1 Team Ltd.Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now
-
I have used the dll with a standard HTML page and it works very good.
Now i'm trying to use it with an activex control and calling the upload.asp from
WinInet.
The Server.CreateObject fails.
There is someone that can help me? -
There is a bug in the documentation.
The correct call for intantiating the object appears to be...
Server.CreateObject("ASPUploadComponent.cUpload") -
I am trying to exclude some file extensions by defining them in strFileExtensions on my ASP pages but it doesn't seem to have any effect. I can still upload all the extensions that I have defined in the exclude string.
I will appreciate your help.
Thanks -
hey,
i keep getting the following error messages:
ASPUploadComponent error '80020009'
Unhandled error: Invalid procedure call or argument
/Admin/Content.asp, line 30
and
ASPUploadComponent error '80020009'
Unhandled error: Out of memory
/Admin/Content.asp, line 30
here's line 30:
Set objFileUpload = Server.CreateObject("ASPUploadComponent.cUpload") -
I'm wondering which messuring unit (Bytes, KB, MB, mm, kg...?) is used in this component, I just installed it and made a page, but then I realized that the FileSize property returns strange values. Can anybody tell me how to interpret this number?
TIA
Oliver Witte -
hmm.... well, the FileSize property should return the file size in bytes... Is the uploaded file itself intact?
-
hey, that's a fast reply, thanks :-)
Well, that's what I thought, too, but obviously it's not. Anyway, in the meantime, I found out what's wrong with it: The value of this property is always double the filesize in bytes, so it seems to be a programming bug. Maybe you can tell the author to fix it...
thanks again and happy coding :-)
Oliver -
lol ... I'm the author
I'll take another look at the code -
If you can spot any mistake at http://www.developerfusion.com/show/1615/4/ .... i'd appreciate any input
I can't see anything wrong yet.....
-
ooops, I didn't know that you're the author, never mind... ;-)) I already have the source code of it, but I don't have the time to look into it right now... to many other things to do... but as soon as I have time, I'll check your code. By the way, are you the author of this forum, too? If so: nice work (if not, nice work, too ;-)). But there's something I miss: I couldn't find any option to change the password in my profile, am I right or am I blind...?
See ya
Oliver -
yeah, I must be blind... just found it and changed my password...
-
The trouble in the version I just downloaded seems to be that the size is in bytes but its multiplied by 2...
Could any1 confirm that...
Regards
Johannes Hansen -
as you can see from one of my older messages, that's what I found out, too. Until the author found the bug, I just divide it by 2 as a workaround.
have a
day
Oliver -
Hello,
I got the following message, when I try to upload a file:
Error 5: Invalid procedure call or argument
File Name: Greenstone.bmp
File Size: 53164
Content Type: image/bmp
Description:
If someone could help or explain what the problem is, I'd be very thankful.
Regards,
Stajko
stajko@stajko.de -
Could you post the code you are using?
Have you tried using the code at http://www.developerfusion.com/show/1615/8/ ? If the error occurs at the Description: part, it may be that you haven't added a Description field for the submitting form..... -
I ve try the component on my dvpmnt PC (NT Wks), no Pb I upload without any pb ! but on the production server (NT SERVER) I have the following message :
Erreur : La classe ne gère pas Automation ou l'interface attendue
In a more "universal" langage :
Error(
): The class does not manage Automation or the expected interface
The upload dll is regitered on the server, the code is the same
maybe it's a pb of one of the vb dll ?? or right permissions ?
Thanks for your help -
Hi
Im also receiving
ASPUploadComponent error '80020009'
Unhandled error: Out of memory
Line is
Set objUpload = Server.CreateObject("ASPUploadComponent.cUpload"
I set this to nothing at the bottom of the page, with no joy
has anyone gt any ideas
would be of great help. -
The upload component seems to work OK but I get an error message which says:
Error 70: Permission denied
I set the permissions for the upload directory to Full Control for everyone, but still I get this one.
Anyone?
Marc -
OK, I forgot to set the SAFETY settings to Everyone Full Control on the shared upload map.
Marc -
Im building a big asp site where i have to upload up to 15 file's
when i took a look at the code i noticed that you used the: input type=file
as far as i know i can't upload more then 1 file at a time with that element
how is it posible then that there is a multiple file support
can you guys help me out here?
greets marc from holland -
Hi All !
One question for you guys, <one of many in the future> I'm sure. I read through your tutorial for the "ASP Upload". One thing I'm unable to do is -make "ASPUploadComponent" a dll. The error I get is -"Compile Error, User-defined type not defined" There is probably a simple answer to this. I'm quite the novice when it comes to coding, so any suggestions would be greatly appreciated.
Much Thanks,
Jason -
ASPUpload Component worked great for for our smaller forms. However...
We have one long form with about 100 form elemens, out of which one is an File input type. When we submit this form, ASPUpload Component fails with a "Out of Memory" problem. Is there anything we can do to fix this problem? Unfortunately, we cannot change the design of the form, as Client wants it to remain the way it is.
Thanks...
Rali -
can somebody tell me how to set up these vb scripts on my server...
this is the error that I receive
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/jasongegere/UPLOAD/uploadcomplete.asp, line 6
thanks fo any help
-Jason -
I am getting the same error, but changing the settings on the mapped folder does not seem to do the trick. Is there a value that needs to be set programatically or is the change in the mapped folder itself?
Please advise and thanks in advance,
Christian
cbethea@greatland.com -
You must remember to register the componenet with your web server, by either compiling the DLL on the server (easiest way from beginners) or use regsvr32 from the command line on the server. Invalid progID means the server has now idea where the DLL is. If you use the regsrv32, please make sure all program references are installed on the server, meaning if you used XML3.0 as a reference in your program - must sure the library is install on the server to. If you need any further assistance, please feel free to e-mail me.
-
Did you also set the safety settings? Just checking...
-
This ASP Upload component is open source but there is a dll file that have
its library which isn't open source anymore.
Another thing, FileSystemObject.copyfile is of no use? -
I wounder if i can install this on my server......and if it it´s free.....
thankz -
Yes, it is free.
-
Server object error 'ASP 0193 : 8002801d'
OnStartPage Failed
/somasnet/fileuploadcomplete.asp, line 7
An error occurred in the OnStartPage method of an external object.
can someone please tell me how to solve this.
Note: I am using Windows 2000 Advanced server with Services Pack 3 -
Is there any way to tell the component to overwrite the uploading files if they exist on the remote server?
-
i would like to know if there is a way to overwrite the existing file insted of getting an error?
Please reply. -
You need to modify the source code so that it checks for the file existing and deletes it.
-
Which part of the code has to be changed and how to make it possible to overwrite?
Thanks -
Hi can you help me with setup on server too please.
-
Hi, James.
This object have any kind of "expiration date"?
[]s
Dewitte -
nope
-
In the Private Sub WriteFile(ByVal strUploadPath As String, ByVal strFileName As String)
when check for file use
If fs.FileExists(strUploadPath & strFileName) Then
'
'Err.Raise ERRFILEALREADY_EXISTS, "ASPUploadComponent", "The file [" & strFileName & "]already exists."
fs.DeleteFile strUploadPath & strFileName, True 'This is the commnd to delete file
End If
If you want you can add a property to set to make a overwrite or an error -
1, To copy the file ASPUploadComponent.dll to your server.
2, Run the command regsrv32 in the command environment. like this:
regsrv32 c:\temp\ASPUploadComponent.dll
It's OK. -
HI, everybody.
I want to upload multi-files once time.
Do you konw?
Thanks. -
I want to konw all of the propertiys and methods about the activex.
please.
thanks. -
I get an "out of memory" error when I have an array of form fields sent on a submitted form.
E.g. I have several checkboxes with the same name but different values. The asp Request.Form objects allows getting the form field values in a comma seperated list.
Any ideas how to fix the "out of memory" error in this case?
Thanks,
Mir -
Excellent component. Clean code, well documented, easy to understand and alter. It saved me hours of development!!!!
Congratulations and Thanks
-
hi,
i have download the uploader and tried on several pdf files.
some works fine, but i notice that some of my pdf even with a reasonable or smaller size that those tested working ones cannot be uploaded.
anyone encounter this problem before?
also, i met some "distorted" image after the upload, with the same file, i can get the first one working and the same file not working for the next few times......
need some help and advices, thanks!
reen -
I'm having the same problem. I believe it has to do with the file size however, I'm not exactly sure.
-
I have been using this component for more than a year. It is a great component. However, recently, I encounter this error when developing a application. I have tried all way to dump the running process in component services but it still return this error. I have also reinstall the component but the same error still come back.
Error Type:
ASPUploadComponent (0x80020009)
Unhandled error: This key is already associated with an element of this collection
/adminPages/updateSection.asp, line 14'create the ActiveX object
Line 14: Set objUpload = Server.CreateObject("ASPUploadComponent.cUpload")
Somebody please help. -
hi hermes_t,
i suspect it is due to some security setting at the server side, rather than the file size.
what firewall are u using? it might be due to the setting.
we try to upload using another uploader without any firewall, it works!
now we are trying to see is it due to some configuration.
hope it helps in your case.
warmest rgds,
reen -
Hi,
I have been using this great product for more than a year and suddenly in the past week or so I have started experiencing errors. The error returned is Invalid procedure call or argument at the Server.CreateObject Line. I haven't changed the code for the past year. I also noticed I can now only upload files less than 150KB. I running Windows 2000 and I have double-checked all my permissions. Like I said I can only now upload files less than 150KB. Can someone please help me as I am at my wit's end?
Thanking you in advanced.
Michellea -
Check whether there is any duplication of the form object name!
I am getting the 'Out of memeory' error because of the following lines.
<input type=hidden name=HproposedByName id=HproposedByName value="<%=strProposerName%>">
<input type=hidden name=HproposedDate id=HproposedByName value="<%=strProposedDate%>">
Id property of the HproposedDate object is duplicated here.
After correcting the mistake.. now working.
Regards,
S.Saminathan
Chennai. -
sorry: just posted from the page that I downloaded the component from. didn't see this forum at first.
I'll search for other topics, maybe my answer will be there!
I was happy as a clam until I tried uploading a PDF file. I keep getting the error:
Error Type:
ASPUploadComponent, ASP 0104 (0x80020009)
Operation not Allowed
/webtools/aspupload/uploadcomplete.asp, line 5
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Page:
POST 227803 bytes to /webtools/aspupload/uploadcomplete.asp -
the image is successfully saved but when i open the image from the directory i saved, an error message pop up say that the specified file cannot be identified as a supported type.
may i know what is wrong ?
objUpload.Form("photo").SaveFile strUploadPath, objUpload.Form("photo").Value, strFileExtensions
-
Please someone help me with this.
I have been trying to get this thing to work for over a month and am always blindsided by the "Permission Denied" error.
EVERY FREAKIN TIME....
I've got the pure ASP upload bit going, but takes too long with anything over 100k...
What am I doing wrong with this permissions denied bit. I have got "Everyone" full control on my client AND destination folders.
Why am I still getting "Permission Denied" on this?
I started off with pure ASP FSO commands, and got that to work a few time (5 out of 1000), but since have had ZERO success... -
I've been having a similar problem with this error also. However; it only seems to be happening with Safari and Opera browsers. Anyone have any ideas on what could be causing this to happen only in these browsers?
Thanks,
George -
Has anyone figured out how to fix the pdf upload issue. It works with any other extension except pdf. If I rename the pdf to something else (i.e. file.dat) then it will upload... I can't find any problems in the component code, so I'm at a complete loss...please please help!
!--removed tag-->
Post a reply
Related discussion
-
Installing windows service using MSI
by chirpyanu (0 replies)
-
Is an Internet Connection Available?
by Jinx101 (8 replies)
-
Adobe Flex reaches out to .NET developers
by darinboyd (2 replies)
-
How to view MYSQL db data in Microsoft word
by spanish (0 replies)
-
What would motivate you to change your job?
by autrion (5 replies)
Related articles
Quick links
Recent activity
- Anjali Thakur replied to Installing windows service ...
- Colm Fitzgerald replied to Reading a weighing scale th...
- Vinod Narayan replied to Structured QA on Budget
- cem ceminay replied to Class, Abstract or Interface ?
- alex reyes replied to dynamic treeview menu from ...
- tejesh shelar replied to control inherirting from gridview
Enter your message below
Sign in or Join us (it's free).