gpt4 book ai didi

php - 从CakePHP到外部PHP调用表单数据

转载 作者:行者123 更新时间:2023-12-03 06:19:53 25 4
gpt4 key购买 nike

在将媒体文件上传到cakephp中的“tmp”文件夹后,我需要从cakephp上传视频到youtube,现在youtube文件在'app/webroot/upload/tmp'

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?

最佳答案

通过使用组件来解决MBosman

关于php - 从CakePHP到外部PHP调用表单数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37458495/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com