Downloading A File From A Folder Above Webroot

I am currently working on an ASP based site which displays largely numerical data, which is stored in an access database. I have been asked to create an 'export' page, which, when working properly will allow a user of the site to export the table he or she is looking at and export it to a .CSV file which they can save onto their own machine.

My problem lies here, I can create the .CSV file on the server, BUT permissions on our host are such that the file can only be saved to the 'databases' folder and not on the webroot.

Is there any way in which I can either setup a way for the user to download from the databases folder? or rather than creating the file on the server, directly write the file to the user's machine?

View Replies


ADVERTISEMENT

Downloading A File

There any way to download files I'm keeping stored above the www
folder for security

I'm thinking of the following : My script determines what file the user
requests, checks their credentials, and then "forwards" the file from the
non public directory to the user.

View Replies View Related

Downloading Pdf File

From the client side, I want to download a pdf file from the server side that was initially saved there.

this site didnt work for me: ....

View Replies View Related

Downloading A File

I have a download function that allows a site visitor to download a file. It works when the page that calls the function, the function, and the file to download are all in the same folder. I want to be able to have the page that calls in one folder, the function in another folder and the file in a third. Any advice? Code that is working when all three are together:

Function doDownload (fileName)
dim myAttachment
myAttachment = "attachment; filename=" & fileName
Response.AddHeader "Content-Disposition", myAttachment
Response.ContentType = "application"
response.BinaryWrite fileName

End Function

View Replies View Related

You Are Downloading The File

I have an asp script on a server. However whenever I link to the script, instead of running it, the browser displays a message saying. "You are downloading the file "filename" from "server name" Would you like to open this file or save it to your computer ?

View Replies View Related

Downloading Or Opening A File In Asp

I want to create a asp page where i can give the user an option of downloading a file or opening a file e.g an excel file.

How do i do this?? Ive already created an asp page which has a button- where the user can click on the button. The excel option of either opening the file or downloading it comes up- but i want this option actually on a asp page. How do I go about this?

View Replies View Related

How To Secure File Downloading

I have been lately dealing with developing an ASP based web application which uploads documents to a folder. Application itself is password protected by the session.

I am now looking for securing the documents that are uploaded.

For example;

Let's say AAA.doc is uploaded to "/docs" folder by this password-protected application. But, I can't prevent the following link to download this Word document:

(URL address blocked: See forum rules)

How can I prevent the above link to download AAA.doc? Is it something possible to restrict it with a session variable? I also want the user who are authenticated at the beginning to view or download the file, but unauthenticated users shouldn't view it.

I found some articles but they are speaking about IIS level things. Folders may be created dynamically. Is it possible to have this security feature at application level?

View Replies View Related

Problem With File Downloading Using Asp

I have written code to download the file stored in the database.

according to some condition the data in database is written using binary write.

If Not rs.EOF Then
Response.ContentType = rs("Content Type")
Response.BinaryWrite rs("File Data")
End If

but when i try to write some filles other than pictures, it will prompt to save the asp file. Code:

View Replies View Related

Downloading Zip File As Binary File

I use the following code in an asp.net page to download file from my site to the user:

Response.Buffer = True
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=""" & dsDocFile.Tables("tbl_DocFile").Rows.Find(FileID).Item("FileName") & """")
Response.Flush()
Response.WriteFile(sFileName)

This works with most every file type I've run across (jpg, gif, doc, ppt, xls, etc..). Normally when the user tries to access a file, a download window pops up asking the user whether he/she wants to open or save the file.

However, when the file is a zip file, the user just receives a blank screen instead of the usual download window. Has any one run into this problem? If yes, how did you resolve it?

View Replies View Related

File Downloading Problem In Firefox.

i am having prob while downloading a file in firefox. If the filename contains
spaces it takes only name before the first space. The rest of the part in the filename is egnored....

i use the following code for it.
--
Response.Addheader "Content-Disposition", "attachment; filename=" & filename
----
example if the filename is "sample filename.doc". while downloading it saves as "sample" the rest of the part filename.doc is removed.

The above code works fine in IE. Can anyone here tell me how i can handle this in firefox v1.

View Replies View Related

How To Avoid Downloading A File Directly From Webserver ?

I need to provide a way to download a software and its corresponding
manual from a web page.

So far I have done the sign in page where people give their data. I
will then give access to a page with a link allowing to download the
required file(s).

My worry is how to avoid that somebody grabs the URL of the file and
send it to another for downloading directly from the server. What can
I do to avoid this ?

View Replies View Related

How To Redirect The User To New Page After Downloading An Mp3 File

I have set of mp3 files as a list (DownloadFiles.asp). The user can click on any of the mp3 files to download(Download_Porcess.asp).After downloading the file the user has to redirect to the DownloadFiles.asp.

For this i used:

response.contenttype="audio/mpeg3",
response.binarywrite("binarystreamofmp3file)

In Download_Process.asp to force the save dialog box. This works fine. This allows the user to download the file. After downloading this mp3 file, this file should not be displayed in the list ie in (DownloadFiles.asp).

How can i do this?

I am not able to redirect from Download_Process.asp to DownloadFiles.asp, b'coz I used response.binarywrite.

View Replies View Related

Unable To Browse Website While Downloading A File Using A Component

I've been trying to send a (large) file to the browser via a download
page that uses a file download component. The file downloads fine,
except that Internet Explorer refuses to browse to a different page
while the file is downloading! I don't understand why it does that
and I don't know how to fix this problem.

Any idea? Code:

View Replies View Related

Folder/file Details

Is it possible to run an asp script to display the details (i.e. last
modifed time/date) of several files held on the client and or on the server
running IIS (if i map it to the folder with the files in question).

View Replies View Related

File And Folder Listing.

I am creating something for our intranet and i want to list the files and folders of a directory, i found some code to do this.The only problem is that it lists the asp file used to for example if i go to:"http://myserver/listing.asp" In the file listing will be "listing.asp" amongst a lot of marketing documents.Is there a way to block/stop this one file from being listed?

View Replies View Related

Folder And File Listing

a website that tells how to do this Folder and File listing? I know I need to use the filesystemobject but other than that I'm lost.

View Replies View Related

Delete A File From Folder

I want to know how to delete a file from a folder in ASp Like i have the path of the file at runtime in my ASp file... but how to delete ?

View Replies View Related

Setting File/Folder Permissions

I am trying to use this bit of code to change the permissions on a file. Apparently it should work but it isn't. I am getting no error messages just nothing is happening. The path to the file is definitley correct. Does anyone have any idea what I am doing wrong?
Code:
<%
strFileOrFolder = "D:WebRoothtdocsProjects est.txt"
strUserName = "Everyone"

dim objWSH
set objWSH = CreateObject("WScript.Shell")
Call objWSH.Run("cmd /c echo y| CACLS " & strFileOrFolder & " /G /T " & trim(strUserName) & ":f", 0, True)
set objWSH = Nothing
%>

View Replies View Related

All The Sessions Reset When Run Copy Folder Or File

I have very weird problem on my server, when I run this function: Code:

View Replies View Related

Grabbing File Size Details From A Folder

I have a folder that has a batch of leaflets in it, these are PDF files. In my application I have a list of courses and one of the fields has the name of the file.

Is it possible, without automatically having to add them by hand, to grab the file sizes and use them on a page or insert into the relevant db field?

View Replies View Related

Retreive Image File Stored In A Folder

I have a DB table, which contains the name of a image file stored in a folder. What i need to do is somehow retreive this image and display it in an asp page?

View Replies View Related

Default Folder Location For Input Type="file"

I have some ASP pages on my intranet site providing a helpdesk to my users. As part of logging a helpdesk call I am prompting them to link to a file using input type="file".

The file is on a network drive and the problem is when you click on the browse button it defaults to the clients desktop as the starting point of the browsing process. I would like to set a default location to start browsing eg etwork_serverhelpdesk to avoid confusion. Does anyone know of a way to do this ?

View Replies View Related

Creating Cookies File And Stored In Cookies Folder

I m creating a cookies in my application and it work properly but i can't see the cookies where it will sotred i checked the cookies folder but i didn't find that I want to create a cookies file as the other web site create and store where other cookies will stored in Cookies folder or Temprory Internet files folder eg:1. arvind@google.co[1].txt this stored in cookies folder 2. arvind@msn[2].txt ....

View Replies View Related

File Size And Folder Size

I'm using Windows 2000 server n IIS I'm Using FileSystemObject of ASP in Server Every File and Folder has 2 Size when we get properties of any 1 actual size and Size on Disk.now my problem is when i get the file size from ASP object it give Size value but when i try to get folder size it gives size on disk and both values are different.

I'm creating a size to access limited size to upload files so i just check the folder size and then get size for those which are going to update by user then i will less those size to actual folder size to get remaining size.

View Replies View Related

Downloading PWS

I have a problem and it's pretty basic. I need to install PWS on a Windows NT Workstation 4.0 PC in college but cannot find a download just for PWS. I've done a search of the web and microsoft's download site and still no luck.

Installing IIS is not an option as Im technically not allowed to install anything and I'd rather it be PWS than a bigger and more noticeable IIS. I've heard that it comes on the Windows 98 disk but unfortuneatly I do not access to one.

Does anyone know of a link to download PWS? I've heard that it comes with an NT Option Pack aswell but can I just install PWS from this or will it change other settings?

View Replies View Related

Downloading Using ASP.

I've been searching through google and different script sites to try and locate a script for simply downloading files(Small video clips) from an access database to my web page. But have been unable to find what I am looking for.

Do any of you guy's know of any good scripts. Don't need anything fancy just the basics.

View Replies View Related

PDF Downloading

I'm using Infomentum's ActiveFile to download files. My machine is running Windows'98 and IE 5.5. I'm able to download all kinds of files except PDF files. I'm using the components File.Download method as per the example available in the web site and the directory that contains the file has sufficient rights granted, surprisingly I'm able to download those PDF files through OPERA.

I did not get any error when I go to the download, instead a blank page was displayed.

View Replies View Related

Uploading And Downloading In ASP

I'm creating the Intranet for my company and in one of the parts of it I want that users to be able to upload and download files, however, I'm not sure what would be the best option/application to use for its creation. I need them specially for the uploading to be able to track when was the upload done, which user did it, and so on.

I have been using ASPs to create the website. Could I do this with ASPs ?

View Replies View Related

Videos Without Downloading

i want that user should listen the songs without downloading.
there is link for every song when user click on the link the small popup will open and then song should start. but for that user dont have to download the song.
please tell me it is possible or not or if possible then please tell me the code.

View Replies View Related

Downloading To Client From ASP

I am developing an app that has a reporting function
which displays the non-PDF reports. One of the users
wishes to have the reports saved to his machine as PDFs.

The app can convert the reports, and save to the server
with no problem (uses a component for this). The problem
is, figuring out how to save the reports to the client.

The ideal approach would be to have the app save the
reports to his desktop, like some of those stupid casino
sites save their shortcut links.

However, I would settle for just just being able to force
the "download" dialog to display, instead of opening
Acrobat when the app attempts to send the report to the
client.

View Replies View Related

Inserting And Downloading

I am developing web pages , therein doing database
connectivity using ASP with Microsoft Access.I want to

insert a file (.opt/.pmopt) into a field 'OLE Object'. Also

I want to display that file name in tabular form and a link
to download that file.

View Replies View Related

Downloading Files...

The help is not very informative here, but it says, that it is possible to
download files, by using the 'a' tag. What I am trying to do, is create a
link, that the user clicks, which will download a file from the server. This
works fine for most files, but for things like TXT and HTM, they open in the
browser window. I want the 'Save As' dialog box to appear, instead.

If I use;
Response.Write "<a href='http://mydomain/myfile.txt'>myfile</a>"
I get the contents of myfile.txt displayed in the browser window. If I use;
Response.Write "<a href='http://mydomain/myfile.mdb'>myfile</a>"
I get the 'save file as' dialog box appear. How do I force the 'save file
as' dialog box to appear for ALL files

I tried using the 'FileSystemObject' and using the 'Copy' method of GetFile.
But this does not allow you to have a 'user defined' path to save the file
(which is pretty obvious, as this is the server side)... Is there another
function that I can use, or is there a property setting of the anchor tag,
that I need to set

View Replies View Related

Downloading Files With Dot

i m getting file not found error when iam trying to download a file with name "test..doc" the actual file name is "text." and the extension ".doc".does using DOT(.) got any limitations with file names? strangly in the development i was able to download such file with dots at the ending.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved