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

  • Home
  • SEARCH
  • 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 8018611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:10:04+00:00 2026-06-04T21:10:04+00:00

I am using youtube api for upload videos from my webpage. This is my

  • 0

I am using youtube api for upload videos from my webpage.

This is my html form:

<form method="post" id="video_form" enctype="multipart/form-data" action="http://uploads.gdata.youtube.com/action/FormDataUpload/key=http://localhost:3000/en/id=4fc3af871d41c808f3000249" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8"><input type="hidden" value="key=" name="authenticity_token"></div>
        <label for="Select_a_video">Select a video</label>
        <input type="file" name="yt_video_id" id="yt_video_id">
         <div class="actions">
        <input type="submit" value="Upload video" name="commit" id="submit_video_button" data-disable-with="Upload video" class="btn-large btn-primary">
         </div>
</form>

I use twitter bootstrap for design and I have this progress bar:

$(document).ready(function(){

    var progress = setInterval(function() {
    var $bar = $('.bar');

    if ($bar.width()==400) {
        clearInterval(progress);
        $('.progress').removeClass('active');
    } else {
        $bar.width($bar.width()+40);
    }
    $bar.text($bar.width()/4 + "%");
}, 800);

});​

you can see example in http://jsfiddle.net/xXM2z/68/

My problem is that the progress bar (progress) is not synchronized with the bytes or megabytes that has sent the file.

I want the progress bar is synchronized with the bytes or megabytes that has sent the file and it displays correctly progress…

How can I do it?

Thank you very much

  • 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-06-04T21:10:06+00:00Added an answer on June 4, 2026 at 9:10 pm

    AFAIK, you can’t, unless you use AJAX/XHR to upload the file instead. If you leave it up to the browser, you will only know when the whole file has been uploaded.

    Here’s an XHR example:

    http://hacks.mozilla.org/2009/06/xhr-progress-and-richer-file-uploading-feedback/

    However, I don’t know whether the YouTube API supports this or not.

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

Sidebar

Related Questions

I'm using Zend_Gdata_YouTube to interface with the YouTube API to upload videos from my
This is what we use to upload a Video to YouTube using YouTube API.
I'm using the youtube api's non resume method to upload a video to youtube
we are trying to use the Google YouTube API to upload videos from our
I am using GData Api to upload video on youtube from ios application. It
I need to develop a web site where I upload videos using the youtube
How do I allow youtube videos on my web page using HTML Purifier http://htmlpurifier.org/
I'm using a form as described here to upload a file to a Youtube
is it possible to upload a video to youtube using python? Maybe an API
I'm using YouTube's iFrame API to embed videos in a page. Everything works great

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.