我需要在上传移动到" tmp'的媒体文件后,从cakephp上传视频到youtube。 cakephp 'app/webroot/upload/tmp'
youtube文件中的文件夹位于app/webroot/upload/youtube/upload.php
表单提交上的Cakephp输出
array(
'postby_id' => 'user',
'videoTitle' => 'my new video',
'videoDescription' => 'my description ',
'videoTags' => hi,this,is,my,data,
'date_posted' => '2016-05-26 10:21:16',
'videoPath' => '11464258076.mp4'
)
upload.php的
$client_id = 'MYID.apps.googleusercontent.com'; // Enter your Client ID here
$client_secret= 'MY_SECRET'; // Enter your Client Secret here
$APPNAME = "name";
$videoPath = "";
$videoTitle = "";
$videoDescription = "";
$videoTags = array("","","");
上传youtube后返回视频ID。
如何将表单数据从cake php表单传递给此upload.php文件?那个youtube视频ID到cakephp?
答案 0 :(得分:0)
通过使用组件感谢MBosman解决