Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 387435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:40:23+00:00 2026-05-12T15:40:23+00:00

you know on YouTube, once you uploaded a video, it would ask you to

  • 0

you know on YouTube, once you uploaded a video, it would ask you to make it either public or private. public being that it is accessible by any. private being accissible by only you the original uploader and you have to be logged in to do so, too. I need to make something of the same kind as that. I am making a rails app that uses QuickTime progressive download instead of Flash, so basically I use an embed tag with the src pointing to some dns/video.mov. But I can’t possibly let the videos be on the public domain. What can be my options on top of your head?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:40:23+00:00Added an answer on May 12, 2026 at 3:40 pm

    Create a session cookie when the user logs in. This cookie usually contains a session ID of some kind (a long string). Attach that ID to the URL of the movie as a query (.../video.mov?ID=2387543462578).

    That way, your server can check the ID against currently open sessions. If the ID isn’t valid, reply with a 403 (forbidden).

    [EDIT] Since you put the file into Rails_root/public/videos, Ruby automatically handles the download to the browser for you. This is the default behavior for any file put in the public folder. What you need is to put the files in a different place and handle the downloads manually. Check the Ruby sources and look for the handler for the public folder; this should give you an idea how it works under the hoods. You should be able to extend this class with some additional code to check whether the user can actually download the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how to make an embedded youtube video to play in loop?
Does anybody know any good simple youtube search scripts in php that I could
Does Any one know how to convert a Youtube video into an mp3 file.
as you know that when you Embed youtube video in your web page, it
are there any functions or scripts available that allows for a video (either in
I know there are lots of tools on the net that can make our
I know that Youtube and Wikipedia was developed with PHP. However, i wonder if
Is there any way to know when the Youtube player/plugin on iPad goes fullscreen?
I know how to get the current elapsed time of a youtube video using...
I would like to distort Youtube videos using html5 canvas. I know how it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.