I am trying to use asp to download a file located on a different server. I can use ADODB.Stream, LoadFromFile(ServerSomething) and the Response.BinaryWrite successfully, but only if I create an IUSR_XXXX account on the other machine.
What other alternatives do I have, or is this the best method? Could I use a com object that ran as a valid user on the other server to copy the file back to the IIS server?
we have some exist file at server site.we wants to open it from any client by simple browse or click on file. is tre any tool to do this or any script.
my current setting is user will click a link in the web page and choose the place that they want to save the file to.
Now i am trying to auto download the file. that means user click the link, it straight away download to for eg. "D:Test". my problem is the web page is at server. user will access the web page thru http, but how am i going to auto download to the user's local drive?
but what if i want to download a file from diff server. How can i do that? i have tried using virtual directory which is pointing to diff folder in different server but doesnot work. First is it possible use to download files from virtual directory pointing to diff server altogether?
we have any option in asp to download a folder from server.for example in my program i am creating one folder for one user(in server). and i am storing some gif files in that folder, when user wants to download all his files on clicking download button, all images should save in his PC. How to do that? I think i explained clearly.
I am making an ASP page which has to parse some HTML, connect to another web server, and download and store the images locally so that they can be served without hitting the other server.
Does anybody know how to do this? I cannot find any component that will let me download files from another server in ASP. I can parse the HTML and get the image paths, so the problem is limited to connecting to that server and retrieving the images to the local server.
I'm having trouble with my first IIS6.0 on Windows Server 2003.
The web site works fine: all ASP pages are processed and displayed normally. The problem is we are not able to download any files from the site (pdf, zip, doc, ...) When you click on a link pointing to one of these files (or if you write the file's absolute URL in the address bar of IE) you get the normal Open or Save as dialog. Whichever option you choose, the next window is an error message stating that the file cannot be downloaded. The strange part is that everything else is working fine, it is file download what fails, exclusively.
Is this something that needs to be enabled in IIS6.0? Do you know anything about this issue?
I am unable to downlaod entire folder at a time from the server using ASP i.e. all the files and sub-directory in that folder at a time, not by downloading individual files one by one .
Downloaded the sendMail.htm and sendMail.asp sample files from technet onto my IIS 4.0 server. The first 2-3 times I tested all went well. Subsequent tests, with no server changes, gave/gives me the "File Download" dialogue box when the sendMail.asp file should be executing. Why does sendMail.asp give a "File Download" box instead of just executing?
I want to be able to let users download movies from my site, but when they click on the link it opens automatically with windows media player. Of course, they could right click and save target as, but the majority of users don't realise this.
Is there a way to tell a page to send the file to the browser as an attachment and force them to save it to disk i.e. not open automatically.
can't use filesystemobject to create txt file on my C: drive. gives me access denied error.
I used same object to create file in the directory on the web server but how can I download txt file using something like a simple hyperlink to the exe file. a hyperlink to a text file simply opens that file in a browser.
I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages where download URL provided. How can I do in order to prevent everyone from downloading without a user account?
Currently i am doing a file management project where user are able to create folder and upload files to it. The file ownner would be able to set permission (from database linking to the file path) if a user able to download it or not.
*each file info will be stored into a table e.g. fileid, filename, path, access.
Now i am facing a problem where if a user does not have permission to click on the link to download, the user can guess the path and the file name and directly type the path on the address bar to download the file.
i want to be able to write an asp.net function to download files.
For example, brinkster.com hosting service has a COM component that allows a stream of binary data to the client from the server so that the client will be prompted to download the file.
here is the syntax:
Set Upload = Server.CreateObject("Persits.Upload")
Dim SysFilePath SysFilePath = Request.QueryString("filePath")
' Parmeters: ' 1. Path to file to download ' 2. Yes, build content-xxx headers ' 3. Use this value for Content-Type header ' 4. Include the word "attachment;" to Content-Disposition to force download
I have a script in ASP 3.0 which creates a CSV file on the server. After the code has run I want it to prompt the user to download the file (via the browser). I have spent a frustrating hour trying this.
I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript). Presently when i click on pdf link on the site,the pdf document opens in the browser.
I have used the below code(download.asp?file=filename):
how do i create a file download utility that limits the number of users? for example, a maximum of 5 users can download a particular file at the same time. i can use asp (not asp.net), javascript, maybe read/write a text file if necessary.
if anyone had any script that can allow a page to run some code and then kick off a file download.Maybe like many places do saying download should start automatically or you can "click here".I appologise if this is easy to work out from the source of one of those pages, but my view source seems to have died and I thought an answer from here might be quicker than fixing it!
I need to make it so that I can download a .WMV video file. because giving users the direct link doesn't work and I think its alot better than asking them to right click and save item as..
I am trying to write a routine that allows users to download files from our secure site, with the code below the file will download and when you click save i get an IE error. However when the page is not https the routine runs just fine. Any Ideas?
I am using enctype of multipart/form-data to transfer files. However, in the target page (action), I can only retrieve the file. ie. If I call Request.BinaryRead, then Request doesnt process Form or QueryString anymore. If I access Form/ QueryString, BinaryRead doesnt work anymore.
Is this by design? If so, how can I pass parameter to the target page, alongwith file?
i have a code that creates a text file and puts it into a folder on the server. i would like after the script is finished creating the text file to prompt the user to download the newly created text file, when he clicks yes a window should appear asking where he would like to save it.
i am able to do file download using the response object, where a dialog box will appear, asking user whether they want to open,save or cancel.
it is possible to download multiple files at once. since it is stated that 1 file download per http request. i am lookinn at http://www.motobit.com/tips/detpg_m...es-one-request/
where it show multiple file per http request. i don't quite understand it though.