Marketplace products

ASP Upload Component

Version
1.0

Overview

Uploading files in ASP are next to impossible without an ActiveX component. This component makes it a cinch, and is completely open source!

Features

- Parses all form fields when posted using multipart/form-data
- Retreive FileName/FileSize/ContentType information for each file
- Supports multiple files
- Upload files to different locations - Block file extensions or file sizes
- Only 40KB!

Comments

  1. 10 Nov 2008 at 18:46

    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!

  2. 06 Jul 2006 at 14:44

    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




  3. 28 Oct 2005 at 21:58

    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...

  4. 11 Jan 2005 at 23:52

    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
       

  5. 17 Sep 2004 at 09:43


    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

  6. 07 Aug 2004 at 02:42




    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.

  7. 14 Apr 2004 at 17:59

    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

  8. 11 Apr 2004 at 21:51

    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

  9. 09 Apr 2004 at 23:36

    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.

  10. 09 Apr 2004 at 21:52

    I'm having the same problem. I believe it has to do with the file size however, I'm not exactly sure.

  11. 21 Mar 2004 at 22:38

    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

  12. 16 Dec 2003 at 11:35

    Excellent component. Clean code, well documented, easy to understand and alter. It saved me hours of development!!!!
    Congratulations and Thanks

  13. 18 Nov 2003 at 20:21

    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

  14. 13 Aug 2003 at 22:58

    I want to konw all of the propertiys and methods about the activex.
    please.


    thanks.

  15. 13 Aug 2003 at 22:16

    HI, everybody.
    I want to upload multi-files once time.
    Do you konw?
    Thanks.

  16. 13 Aug 2003 at 22:12

    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.


  17. 29 May 2003 at 15:19

    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

  18. 24 Apr 2003 at 10:24

    nope

  19. 24 Apr 2003 at 09:30

    Hi, James.


    This object have any kind of "expiration date"?


    []s


    Dewitte

  20. 24 Mar 2003 at 10:58

    Hi can you help me with setup on server too please.

  21. 14 Mar 2003 at 02:51

    Which part of the code has to be changed and how to make it possible to overwrite?


    Thanks

  22. 09 Mar 2003 at 07:56

    You need to modify the source code so that it checks for the file existing and deletes it.

  23. 14 Feb 2003 at 03:17

    i would like to know if there is a way to overwrite the existing file insted of getting an error?
    Please reply.

  24. 17 Dec 2002 at 14:38

    Is there any way to tell the component to overwrite the uploading files if they exist on the remote server?

  25. 12 Dec 2002 at 21:44

    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

  26. 18 Nov 2002 at 14:59

    Yes, it is free.

  27. 31 Oct 2002 at 09:44

    I wounder if i can install this on my server......and if it it´s free.....


    thankz

  28. 01 Sep 2002 at 14:30

    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?

  29. 12 Aug 2002 at 05:05

    Did you also set the safety settings? Just checking...

  30. 10 Aug 2002 at 08:47

    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.

  31. 06 Aug 2002 at 10:49

    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

  32. 05 Aug 2002 at 02:20

    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

  33. 11 Jul 2002 at 09:28

    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

  34. 10 Jul 2002 at 07:35

    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

  35. 18 Jun 2002 at 08:38

    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

  36. 17 May 2002 at 04:09

    OK, I forgot to set the SAFETY settings to Everyone Full Control on the shared upload map.


    Marc

  37. 17 May 2002 at 04:04

    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

  38. 10 May 2002 at 08:12

    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.

  39. 20 Mar 2002 at 11:11

    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

  40. 16 Mar 2002 at 10:36

    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.....

  41. 13 Mar 2002 at 19:09

    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

  42. 06 Mar 2002 at 11:13

    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

  43. 06 Mar 2002 at 09:55

    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

  44. 27 Feb 2002 at 04:05

    yeah, I must be blind... just found it and changed my password...

  45. 26 Feb 2002 at 17:08

    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

  46. 26 Feb 2002 at 15:28

    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.....

  47. 26 Feb 2002 at 15:22

    lol ... I'm the author I'll take another look at the code

  48. 26 Feb 2002 at 14:55

    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

  49. 26 Feb 2002 at 14:08

    hmm.... well, the FileSize property should return the file size in bytes... Is the uploaded file itself intact?

  50. 26 Feb 2002 at 13:29

    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

  51. 02 Feb 2002 at 15:10

    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")

  52. 23 Jan 2002 at 16:21

    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

  53. 03 Jan 2002 at 02:45

    There is a bug in the documentation.
    The correct call for intantiating the object appears to be...


    Server.CreateObject("ASPUploadComponent.cUpload")


  54. 08 Nov 2001 at 15:22

    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?


  55. 01 Jan 1999 at 00:00

    This thread is for discussions of ASP Upload Component.

Leave a comment

Sign in or Join us (it's free).

AddThis