Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP.NET Copy File
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP.NET Copy File

 Post Reply Post Reply
Author
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post Topic: ASP.NET Copy File
    Posted: 17 December 2004 at 10:09am

Have an Interesting Question...Dead

I have a folder and have some XML files stored in it.
 
When I try to load the XML, I get 401 authorization denied error. I am the admin, the security in the folder cannot be changed becase it is a dynamic on the fly folder. What can be done is by typing the link I can save the file to the c-drive in the server.
 
Being that is the only option I got, I would like to save the file into a specific location and access the file, which I am able to do. I aready have a have location in the server where I generate reports daily. I can bering this in there. So any one has any options.
 
By the way I tried ADODB.Stream thinking I could copy to clients machine. By default it is disabled and I it dangerous to turn it on.
 
Please any advise will be appreciated...
 
Thanks a lot,
 
Shrini
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 12:31pm
By default sub folders inherit security permissions of their parent folder, so if you set the parent folder security settings when a folder is made on the fly it will have those settings
Back to Top
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 1:42pm
I have no control over Security. My only option is copying the file to the local drive on the server. If I can accomplish that, everything is great.
 
Currently If I past the direct link to the file I am able to get a save as prompt. Is there a way to use that link to save the file to temp location. Is this possible?
 
Shrini
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 2:02pm

It sure is, but why on earth would you do that? If you have to copy and paste the file (which obviously can be accessed) at every request, well, that's not a really neat way of doing things.

 
First of all, what do you mean with an 'On The Fly' directory? If the folder is on another server, try the WebClient if you really want to copy...
Gone..
Back to Top
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 2:20pm
It is a office DMS and when the custom ISAPI extension looks up that path, it creates those folders on the fly and gets the file.
 
I am thinking is if the file exits in the location, I would just read the file and give a recreate generate file option.
 
Shrini
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.