Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

App_Data files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SushiSean - 21 Dec 2007 22:25 GMT
I have problems with sharing files from this directory. It is system
directory so I can't make dirrect links on files inside. For example
/App_Data/my.mp3
www.example.com/App_Data/my.mp3 - forbidden link

I have tring make a handker which should read this file and write to response
www.example.com/file.ashx?filename=my.mp3
But I have other problem with it. It can be different file and for any of
this I need  to know
1) which Mime Content Type for this and
2) when it save it save with name of handler file file.ashx but it should be
my.mp3

So how I should make http links on files from App_Data.

ps. I use this App_Data folder for save my files only because it allow
create/remove directories without errors. If I remove some other folder
inside site - page as usual freezing
l.holota@hotmail.com - 22 Dec 2007 13:09 GMT
The App_Data folder is "invisible" for users, because it is supposed to
contain database or xml files - secret files users must not see. If you want
to create direct links, create your own folder ("mp3" for example) asp.net
will not control this folder and it will be available for users. Another way
you mentioned - handler, you can find the MIME type here:
http://www.w3schools.com/media/media_mimeref.asp. Don't know how to solve
the other problem with file name, someone else will advise :)

> I have problems with sharing files from this directory. It is system
> directory so I can't make dirrect links on files inside. For example
[quoted text clipped - 16 lines]
> create/remove directories without errors. If I remove some other folder
> inside site - page as usual freezing

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.