Re: Send and recive files
From: Curt_C [MVP] (software_AT_darkfalz.com)
Date: 02/13/04
- Next message: Anal?a Urbano: "detecting bandwith"
- Previous message: Jennifer Smith: "securing html files using asp"
- In reply to: Mrc: "Re: Send and recive files"
- Next in thread: Mrc: "Re: Send and recive files"
- Reply: Mrc: "Re: Send and recive files"
- Reply: Mrc: "Re: Send and recive files"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 13 Feb 2004 08:50:42 -0600
One step at a time
First off, here is file uploading http://www.darkfalz.com/1043
Get that piece up and running first, then move on to the next.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com "Mrc" <anonymous@discussions.microsoft.com> wrote in message news:588D34FD-85BA-4BD4-ADEF-D12A2B2CFC5B@microsoft.com... > I would like to use only standard component just present on IIS. I can use FSO if necessary. > I've created a submit form where the user can select a file to upload. > When the user press the button for submit the selected file, how my asp page can read this file? This file are first saved on a temp dir by a server? > After my asp page have readed this file, I have to send a response file (binary) to the client. I don't want to use a link (<a href=...>) because this file must not be accessible by other user. > How can i send file to the client? I have to specify mime type on header? > I have to read a Chunk of file with FSO and send this Chunk to a client? How can I send this Chunk? > > > ----- Roland Hall wrote: ----- > > "Mrc" wrote: > : Note: This is my first ASP page :-) > : I would use Vbs script on .asp page and IIS (not asp.NET) > : I need to send and recive files. > : > : - Anyone have examples? > : - When I have to send file from server to client, I need to read a pice of > file and send it to client? Exist any IIS function that accept file name and > path and send it to client? > > Hi Mrc... > > Can you clarify 'send and receive files'? Normally the server provides HTML > and client-side script to the client, after ASP script has been processed. > The browser parses and renders the results of the code received. If the > user needs a file, then it can be as simple as a link: <a > href="somefile.ext">somefile.ext</a>. The user can right-click on the link > and choose Save Target As... and then browse to a specific path on their > drive to store the file. > > If the client needs to upload files to the server, then several things are > required. > > 1. The server needs an ASP component or you can use pure ASP code if a > component is not available (installed on the server). > 2. A form with an <input type=file...> tag will allow the user to browse > their local drive and select a file to be upload. Then they submit the form > calling for the ASP script with the ActiveX component or the pure ASP > upload. > 3. The upload directory will have to have appropriate rights assigned to the > anonymous user (the account the user uses) so the file can be written to the > server. > 4. Generally after that you will want to use FSO (FileSystemObject) to move > the file a directory (folder) where it can be made available for others ( if > this part needs to be automated). Otherwise the site Admin could use > numerous ways to manage the files, i.e. web site control panel, IDE > interface like Visual Studio, custom ASP interface, etc. > > You can download an archive of two ASP scripts that will test for ASP > components installed on a web server and to test for server-side email > components. > > http://www.pensaworks.com/prg_com.asp > > Here is a link if you want to use pure ASP for your upload process. > http://www.asp101.com/articles/jacob/scriptupload.asp > > Here is a script using FSO to move a file from one directory to another on > the server. > http://www.devguru.com/Technologies/vbscript/quickref/filesystemobject_movefile.html > > HTH... > > -- > Roland Hall > /* This information is distributed in the hope that it will be useful, but > without any warranty; without even the implied warranty of merchantability > or fitness for a particular purpose. */ > Technet Script Center - http://www.microsoft.com/technet/scriptcenter/ > WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp > MSDN Library - http://msdn.microsoft.com/library/default.asp > > >
- Next message: Anal?a Urbano: "detecting bandwith"
- Previous message: Jennifer Smith: "securing html files using asp"
- In reply to: Mrc: "Re: Send and recive files"
- Next in thread: Mrc: "Re: Send and recive files"
- Reply: Mrc: "Re: Send and recive files"
- Reply: Mrc: "Re: Send and recive files"
- Messages sorted by: [ date ] [ thread ]