-
Notifications
You must be signed in to change notification settings - Fork 972
Upload videos from third party applications
YouPHPTube edited this page Aug 17, 2018
·
15 revisions
This tutorial will clarify how third parties apps can Upload files to YouPHPTube
Where to Upload
We will use the Mobile Plugin Upload File to receive the file, you Will need to upload your video to the URL
yourSite+'plugin/MobileManager/upload.php?user='+ this.user.login + '&pass=' + this.user.password+
For example, to upload to the demo site on the Admin profile, your URL will be
https://demo.youphptube.com/plugin/MobileManager/upload.php?user=admin&pass=123
and the file post key should be 'upl', we expect in PHP to receive $_FILES['upl']
so, if you are using HTML you should have a form like this ...
<form enctype="multipart/form-data" method="post" action="https://demo.youphptube.com/plugin/MobileManager/upload.php?user=admin&pass=123">
<input name="upl" type="file" />
<input type="submit" value="submit" id="submit" />
</form>
You also can send GET or POST variables to it with the following values: title, description and categories_id