upload video clips to the website

Discussion in 'ASP .Net' started by qwe85, Mar 3, 2006.

  1. qwe85

    qwe85 Guest

    hi could anyone tell me how to allow my visitors to upload video clips
    to the website using asp.net
    Thank you
    qwe85, Mar 3, 2006
    1. Advertisements

  2. qwe85

    Guest Guest

    Upload to website.

    Do yourself a favor and upload to the app_data folder. Only allow
    registered users to upload. Create users folder in app_data folder manually.

    if page.user.identity.isauthenticated then
    Dim uname As String = Page.User.Identity.Name
    'Create the member directory if it does not exist
    MapPath = HttpContext.Current.Server.MapPath("~/app_data/users/"
    & uname)
    If Not System.IO.Directory.Exists(MapPath) Then
    End If
    MapPath = HttpContext.Current.Server.MapPath("~/app_data/users/"
    & uname &"/" & fileupload1.filename)
    end if

    Good Luck

    Guest, Mar 3, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.