How to upload video from Rev to Server

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

How to upload video from Rev to Server

Post by pkmittal » Mon Sep 24, 2012 8:25 am

Hi, I posted the question in iOs Category but did not get any response.. So I am posting in Windows cateogry.

I am looking for complete upload script for uploading the videos on the server. ( It could have progress bar and also proper way of handing internet connection if it goes down for few seconds..) Are there already such scripts or good set of stacks available which one could download free or purchase or some expert can write quickly in hour ?

Here is the code I wrote but not sure how to write further to make things work..

In rev,

Code: Select all

put baseURL & "/uploadVideo.php" into urlString
post url("binfile:" & nameOfFile) to URL (urlString)

When we use the File Browse Control in HTML Browser then we use the following PHP Script to upload

Code: Select all

<?php
set_time_limit(3600);
   $filename = $_FILES['userfile']['name'];
   if($_FILES['userfile']['error']!= UPLOAD_ERR_OK){
      error_log("failed");
      }
   if(move_uploaded_file($_FILES['userfile']['tmp_name'], "./".$filename)){
         echo 'Your file upload was successful'; // It worked.
       }
  else{
         echo 'There was an error during the file upload.  Please try again.'; // It failed :(.
  }
?>

But here we need to change... Perhaps we need to post the video data in chunk because there may be some limit for post data... and use some header multipart form data.. etc.....

Is there some one who already have such stack available ?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: How to upload video from Rev to Server

Post by mwieder » Mon Sep 24, 2012 5:14 pm

Hi, I posted the question in iOs Category but did not get any response.. So I am posting in Windows cateogry.
:shock:

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to upload video from Rev to Server

Post by Klaus » Mon Sep 24, 2012 5:56 pm

Don't ask, Mark 8)

Post Reply