Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Best place to store uploaded files?

Posted on 2007-04-10
3
Medium Priority
?
202 Views
Last Modified: 2012-08-13
Hey I'm building an online file manager web app in ASP.Net, I wondering where the best place is to store the files uploaded by a user?

I have them at the moment stored in a folder outside the inetpub folder, at c:\files\filemanager\users\<username>\Root is that ok or is it best to store them in the webapp folder under inetpub?

If it is ok to store at the "files\user..." folder then I've another question. Any video files uploaded I convert them to flv & I was gonna store them in "c:\files\ConvertedVids\users\<username>\" but to play back the flv's I need to pass in a web address
Using FLVScrubber 2 http://www.topfstedt.de/weblog/?page_id=208 with the following embedded code:

<embed flashvars=""    src="http://www.yoursite.com/assets/scrubber.swf?file=http://www.yoursite.com/videos/yourvideo.flv&bufferTime=3&startAt=0&autoStart=false"
    allowfullscreen="true"
    type="application/x-shockwave-flash"
    id="FLVScrubber2"
    style="width: 323px; height: 283px;" />


So do I need to have the converted files stored in a folder under the webapp? Say <webapp>/convertedvids/<username>. How do I control it so only the user logged in gets to view only their vids? Wud I need a web.config for each <username> folder?

As I'm sure u guessed I'm very new to ASP.Net, thanks for any advise.
0
Comment
Question by:rebels_mascot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:ullfindsmit
ID: 18883090
you can restrict access to files/folders based on user authentication on the web.config
0
 

Author Comment

by:rebels_mascot
ID: 18883155
So should I go down the <webapp>/convertedvids/<username> route and have a web.config for each <username> folder? As in I don't want userA to be able to see userB's videos by guessing a url, because I think I'll have to enter the video file name into the url so the embeded flv player knows what to play
0
 
LVL 12

Accepted Solution

by:
ullfindsmit earned 1500 total points
ID: 18883171
try changing the filenames to random numbers/strings or something along those lines... make it hard to guess.

The only way to make it a 100% safe is to save it under the wwwroot directory and write your own page to read from the file and stuff... which I believe would be fairly complex.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question