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 8126443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:09:01+00:00 2026-06-06T07:09:01+00:00

I am uploading video on twitvid using its official php library. http://www.martin-gardner.co.uk/twitvid/twitvid.class.example.php#embedvideo But when

  • 0

I am uploading video on twitvid using its official php library.
http://www.martin-gardner.co.uk/twitvid/twitvid.class.example.php#embedvideo

But when I upload a video it is return error like this.

include_once('twitvid.class.php');
$Tv = new Twitvid;
$Tv->username = 'iphoneteamds@gmail.com';
$Tv->password = 'ds#123456';
$login_test = $Tv->authenticate_it();
$Tv->token="62BE4CB70D9A49100A1C6A175C8ED3E5";



if($_FILES['file']){
    pr($_FILES);
    $myfile = $_FILES['file'];
    //$myfile = fread(fopen($_FILES ['file']['tmp_name'], 'r'), $_FILES['file']['size']);
    $my_upload = $Tv->upload_video($myfile,"test","test1");
    pr($my_upload);
}

and ehre is my upload video method

function upload_video($media, $message="", $title="", $format='json', $playlist_id="", $vidResponse_parent="", $yt_username="", $yt_password="", $user_tags="", $geo_latitude="", $geo_longitude="", $tags="", $description="")
        {
            $request = 'https://im.twitvid.com/api/upload ';
            if($this->token !== ""){ 
                $postargs = "token=".$this->token."&format=".$format."&message=".$message."&playlist_id=".$playlist_id."&vidResponse_parent=".$vidResponse_parent."&yt_username=".$yt_username;
                $postargs.= "&yt_password=".$yt_password."&user_tags=".$user_tags."&geo_latitude=".$geo_latitude."&geo_longitude=".$geo_longitude."&tags=".$tags;
                $postargs.= "&description=".$description."&title=".$title."&media=".$media;
            }else {
                $postargs = "username=".$this->username."&password=".$this->password."&format=".$format."&message=".$message."&playlist_id=".$playlist_id."&vidResponse_parent=".$vidResponse_parent."&yt_username=".$yt_username;
                $postargs.= "&yt_password=".$yt_password."&user_tags=".$user_tags."&geo_latitude=".$geo_latitude."&geo_longitude=".$geo_longitude."&tags=".$tags;
                $postargs.= "&description=".$description."&title=".$title."&media=".$media;
            }
            return $this->process($request,$postargs);
        }

Please help me to get it resolve and upload video

My form is as below

<form method="post" enctype="multipart/form-data" action="">
<input name="file" type="file" />
<input name="submit" type="submit" value="Submit" />
</form>

and result is as below.

{
"rsp": {
"stat": "fail",
"err": {
"code": "1002",
"msg": "No file specified to upload"
}
}
}

Thanks in advance…

  • 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-06T07:09:02+00:00Added an answer on June 6, 2026 at 7:09 am

    I’m Marty, I wrote the twitvid class,
    it looks like, you could be just sending the file name to the upload method, and not the binary file data?

    Anyway… its been a while since that class was updated!

    I’ve updated the class to version 1.3

    it can be found on the site: http://martin-gardner.co.uk/twitvid/

    Its a total re-write of the class from the ground up to comply with all the changes twitvid(Telly as it will be known) has made to the api and features they offer.

    download the latest version of the class, there’s a demo page included in the download which is a copy of the example page where you can see the basic code used to upload…

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

Sidebar

Related Questions

I'm trying to change video dimensions using ffmpeg. For example, user is uploading video
I am uploading a video using FTP. I am showing a notification also for
Hi i want to create an uploading video program using youtube api I think
I am uploading a video file using an Async Task. To track the progress
How to a create thumb image while uploading a video, am using the following
In C#, I'm uploading a video file to Facebook from a server, using the
I am using paperclip for uploading file ( video and images). Have used the
I am choosing videos using UIImagePickerController, then uploading the video to a web server
I am uploading a video using a form and want to parse the video
i have a web application for video uploading,In that i want to show the

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.