473,769 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File upload - receive side only

Hello,

I have the following setup:

The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static HTML.

I need to program the "receiving side" of the upload. Preferrably, I'd be
happy with soultion that doesn't involve webforms controls, not to make
things complex. I want to avoid the webforms control also because I want to
have better understanding how the uploaded file is handled in the
server-side, and in what format it is available for developer. Please
understand me right - I've been programming pure JScript (classic ASP) file
upload solution, that not just properly handles the incoming POST request
with muliple files, but also is able to update upload progress in the
database so that the user doing the upload has some feeling of progress of
the transfer. So, I know the guts of what happens when file upload happens.
I am wondering do I have to recode the ASP.NET file upload server-side code
to achieve the same goals - being able to update upload progress in the
database (so that another script can display the progress), and having pure
byte stream in hands for further handling? Maybe I can intercept the POST
request handling in some lower level, before the control gets to the Render
method of the child of System.Web.UI.P age?

Rgds,

Pavils
Mar 28 '06 #1
4 3439
DWS
This asp.net not get help for anything.

"Pavils Jurjans" wrote:
Hello,

I have the following setup:

The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static HTML.

I need to program the "receiving side" of the upload. Preferrably, I'd be
happy with soultion that doesn't involve webforms controls, not to make
things complex. I want to avoid the webforms control also because I want to
have better understanding how the uploaded file is handled in the
server-side, and in what format it is available for developer. Please
understand me right - I've been programming pure JScript (classic ASP) file
upload solution, that not just properly handles the incoming POST request
with muliple files, but also is able to update upload progress in the
database so that the user doing the upload has some feeling of progress of
the transfer. So, I know the guts of what happens when file upload happens.
I am wondering do I have to recode the ASP.NET file upload server-side code
to achieve the same goals - being able to update upload progress in the
database (so that another script can display the progress), and having pure
byte stream in hands for further handling? Maybe I can intercept the POST
request handling in some lower level, before the control gets to the Render
method of the child of System.Web.UI.P age?

Rgds,

Pavils

Mar 28 '06 #2
take a look at some of the ihttpmodule upload examples (google it), it will
give you an idea of how an upload works when it reaches serverside.

--
Regards

John Timney
Microsoft MVP

"Pavils Jurjans" <pa****@mailbox .riga.lv> wrote in message
news:eo******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have the following setup:

The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static HTML.

I need to program the "receiving side" of the upload. Preferrably, I'd be
happy with soultion that doesn't involve webforms controls, not to make
things complex. I want to avoid the webforms control also because I want
to have better understanding how the uploaded file is handled in the
server-side, and in what format it is available for developer. Please
understand me right - I've been programming pure JScript (classic ASP)
file upload solution, that not just properly handles the incoming POST
request with muliple files, but also is able to update upload progress in
the database so that the user doing the upload has some feeling of
progress of the transfer. So, I know the guts of what happens when file
upload happens. I am wondering do I have to recode the ASP.NET file upload
server-side code to achieve the same goals - being able to update upload
progress in the database (so that another script can display the
progress), and having pure byte stream in hands for further handling?
Maybe I can intercept the POST request handling in some lower level,
before the control gets to the Render method of the child of
System.Web.UI.P age?

Rgds,

Pavils

Mar 28 '06 #3
DWS
Pavils,
Maybe I was kinda hard on my last response but webservice it across to
asp.net server. You can look at the ihttphandler all you want to but thats
advanced coding and you didn't even want to use a form.

Good Luck
DWS

"Pavils Jurjans" wrote:
Hello,

I have the following setup:

The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static HTML.

I need to program the "receiving side" of the upload. Preferrably, I'd be
happy with soultion that doesn't involve webforms controls, not to make
things complex. I want to avoid the webforms control also because I want to
have better understanding how the uploaded file is handled in the
server-side, and in what format it is available for developer. Please
understand me right - I've been programming pure JScript (classic ASP) file
upload solution, that not just properly handles the incoming POST request
with muliple files, but also is able to update upload progress in the
database so that the user doing the upload has some feeling of progress of
the transfer. So, I know the guts of what happens when file upload happens.
I am wondering do I have to recode the ASP.NET file upload server-side code
to achieve the same goals - being able to update upload progress in the
database (so that another script can display the progress), and having pure
byte stream in hands for further handling? Maybe I can intercept the POST
request handling in some lower level, before the control gets to the Render
method of the child of System.Web.UI.P age?

Rgds,

Pavils

Mar 29 '06 #4
My NeatUpload 1.2 component [1] has support for doing *most* of what
you want. It's probably easiest to use its controls but it's
possible to upload without them. If you are just trying to avoid
putting ASP.NET on a static HTML page, the simplest solution is
probably to put an iframe in your static HTML page and display an
ASP.NET page within the iframe.

If you really want to avoid using web forms controls entirely, with
NeatUpload you'll need to add a special query param to your form's
action URL [2] and you'll need to write a custom UploadStoragePr ovider
[3] that can tell NeatUpload where to put each uploaded file.

The one thing that NeatUpload doesn't currently support is storing the
progress info in a DB. It is currently held in application state and
is only available via a web page. However the format of that web page
can be customized [4] so that you could, for example, return an XML
document that your app parsed to get the progress info.

Also, since NeatUpload is open source you can modify it to suit your
needs or examine the source code to get a better understanding of how
it works.

Hope that helps,
--Dean

References:

[1]http://www.brettle.com/neatupload
[2]http://www.brettle.com/NeatUpload-1.2/docs/Manual.html#moz TocId483750
[3]http://www.brettle.com/NeatUpload-1.2/docs/Manual.html#moz TocId759939
[4]http://www.brettle.com/NeatUpload-1.2/docs/Manual.html#moz TocId628349

Mar 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
2513
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security ( obviusly ) reazons.. so..i think this probable solutions to unlock the computer and run the...
7
4536
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
6
4016
by: Pat Carden | last post by:
Hi, We need to allow webusers to upload a file on our website (on Server3, all servers run Server 2003, remotely hosted) and eventually save it on our SBS Server (Server2) which is not exposed through our firewall. We have another server (Server1) within the SBS domain that is exposed through port 80 of the firewall on which we host some web services and images. What is the best architecture for getting the file from the remotely...
5
737
by: Neo | last post by:
Hello, I am receiving a file as a binary stream from a C++ Client Application. >From the application, the file is being sent as a "Multipart/form-data". I want to receive this file on the server, for which i am using Request.Inputstream and reading it into a byte array. This is not working as it is coupling the binary content with some Boundary and text such as "Content-Disposition:
3
23086
acoder
by: acoder | last post by:
How to Upload a File in Coldfusion Use the cffile tag for uploading files to the server. Note that allowing people to upload files is fraught with danger and only trusted users should be allowed to upload files. Checks should be made to make sure that only allowed file types are uploaded. The Client-Side First of all, let us deal with the client side. This assumes some knowledge of HTML.
4
1799
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm building a program which allows users to upload files (located both on their computer and on our network) onto a file server. However, it appears that the Internet Guest Account on the webserver must have access to every possible file location from-which the users are selecting files. If this access is missing, an exception of type System.UnauthorizedAccessException occurs. Obviously its impractical for me to grant the...
4
6916
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the function creates the file as expected. When I loop through my array I get the error - "ArgumentException was unhandled - Illegal characters in path" The value "C:\Temp.txt" is the first value in the array - as it works
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7401
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3949
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 we have to send another system
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.