Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2006, 11:02 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default progid of posting acceptor

Server.CreateObject("What is the progid of posting acceptor")

Does anyone knows what progid should i write for posting acceptor like for instance "aspSmartUpload.SmartUpload"

Or how can host find out which upload component has been installed on their web server (is there any command that shows you which upload component is installed on web server)

Thnx for all your help

 
Old September 17th, 2006, 12:27 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I have no idea what your asking?

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 04:03 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Then plizz tell me how to upload file with posting acceptor in asp page

 
Old September 18th, 2006, 05:57 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What do you mean by 'acceptor'?

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 07:10 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aint Posting acceptor alternative to other upload components such as ASPupload, ASPsmartUpload and similar????

 
Old September 18th, 2006, 07:19 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Do you mean to say that you want to know how to upload files without using a component?

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 08:00 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes that would be nice is it possible

 
Old September 18th, 2006, 08:14 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You have to use an <input type="file" id="file" runat="server"> and then create an HtmlInputFile object in your code behind that references your input box.

So:
HtmlInputFile = file

Be warned, while this will allow you to save files from a clients PC to the server, .NET does not effectively manage memory correctly when doing this. e.g. if you upload a 10MB file to the server, 10MB of memory will be consumed by the aspnet_wp.exe process on your server and, when the upload is complete, the process will only release a fraction of this memory.

What ends up happening is that if you have alot of uploads going on at one time you will cause the .NET worker process to recycle itself and it will cause your application to crash for a moment while the process restarts itself.

The work around to this is to use an HTTPHandler/HTTPModule that will stream the data straight to disk and bypass the worker process but this is a rather complex subject as you are actually working with RAW form POST data and RAW byte data from the uploaded file.

I wrote a module that does what your asking but before you ask me to share the code, go here and read this post IN ITS ENTIRETITY (173 replies) that I contributed to:

http://forums.asp.net/thread/55127.aspx

You should easily be able to create your own module after reading this thread.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 09:45 AM
Authorized User
 
Join Date: Jan 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thnx man
will look into it and let you know

 
Old September 18th, 2006, 09:53 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Your welcome.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid ProgID attribute kimmy VB Components 1 August 4th, 2004 10:59 PM
Invalid ProgId ASP 0177 (0x800401F3) saravananedu Classic ASP Components 5 June 8th, 2004 07:31 AM
Posting Error Ben Horne Forum and Wrox.com Feedback 2 April 7th, 2004 12:03 PM
Posting Error rsteph7 Forum and Wrox.com Feedback 1 June 30th, 2003 04:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.