How can I upload videos directly to Vimeo without uploading my server? - php

I have a website. In my website, users will upload videos. I get a Vimeo Pro account to store the videos. Now, the videos are stored form user end to the server. Then it uploads to Vimeo from the server. It takes twice the time to upload it to Vimeo.
So, I need a solution to upload the videos directly from the user's end. I don't want to upload the videos to my server. Is there any way to upload the videos directly?
Thanks in advance.

To upload direct from the user/client browser, use the POST upload method and deploy the HTML form as documented here: https://developer.vimeo.com/api/upload/videos#form-based
Uploads using the POST upload method will upload from the client browser direct to Vimeo, without uploading to your server. However, be aware that if the user leaves the page or loses internet connection the upload will fail and there is no way to resume the upload.

Related

Upload Amazon S3 videos to Facebook via PHP SDK?

I'm creating an application which need to upload a video to a user profile on Facebook (web hosted application, I am using Facebook PHP SDK). Videos are hosted on Amazon S3.
I have tried to upload a video that is hosted locally on my instance, and that is working fine (authentication is OK, and the video is found to be uploaded).
But I am not able to find how to directly retrieve the video on S3 to upload it. I have read that this could be done only when the video is local. But that is not convenient for me to download the video from S3 first then upload it to Facebook.
Has anybody faced this issue, and found a way to solve it so that the video can be directly uploaded from S3 to Facebook, using the S3 Url ?
Thanks a lot for your help.

How to upload videos to youtube from url

I have an option for users to share videos. I use to filepicker.io to handle my uploads. I am using zend gdata plugin, it works well for videos stored on my server. But it does not work for videos saved on amazon s3 servers. Can I upload videos on s3 to youtube.
I appreciate any help.
The YouTube Data API requires that you send the actual bytes of the video you're uploading as part of the upload request. You can't just provide a reference to a remote URL as part of an upload request and expect the YouTube API servers to retrieve the video file from that URL.
If your video is on Amazon S3 and your code is running from a place that doesn't have direct access to the video file, then you're going to have to download it temporarily to someplace your code does have access to, and then include the video file in your YouTube upload request.

Saving uploaded media content

I'm making my own website using html and php, and a database using mysql on localhost on a easyPHP server. Users can make an account and upload videos on the site.
I'm wondering if it would be possible when they upload the file, it would upload the file to youtube and I can just save that link in my database. Then on the content page I could just use that link to show the video in an embedded player.
If that's not possible, what would be the best way to save the content in a folder on my PC?
Thanks
Yes, Youtube allows uploading video files directly to Youtube's servers, bypassing your server.
This page documents it pretty well: https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading

API - To upload image and to list them

I want to upload image to a image hosting service (free). I want users to upload images using the form in my website, but directly to the my image hosting's account(in a album). I don't want users to upload images to my server first and then later upload this file to imagehosting account by using my server script.
I have read about Imageshack's API and imgur API. But i donot think they will allow direct uploading.
Do you know any image hosting service or API, that allows:
uploading images directly to the image hosting account (by users of
my website, instead of using script to do the upload)
easy to use API with PHP
allows fetching of images from the albums later
Please help
Try to use uploadify library. This is very nice and usefull lib.
http://www.uploadify.com/

Can I navigate Image Uploader with cURL?

I'm wondering if anyone knows if manipulating the Aurigma Image Uploader using cURL is possible. Basically what I need to do is transfer images that are uploaded to my site (not using aurigma), and using web scripting (I'd assume cURL) send those photos to another site that is password protected but that uses Aurigma Image Uploader to receive photos. So I would need to be able to navigate to the correct upload folder on my desktop, then select all the photos in that folder and then upload them. I can't connect to the server directly using POST, so that option is out of the question. So any advice on how to accomplish this would be great. Thanks.
EDIT
To explain the process that needs to happen. Site/Server 1 receives images that are uploaded to it from users using a generic image uploading script. Site/Server 2 receives images that are uploaded to it via the Aurigma Image uploader. My question is whether a script can be created to transfer directly the images received on Server 1 to server 2? The script would see the uploaded images on server 1 and then navigate through the password protection on server 2, navigate to the area of the site to upload, then use the site's installation of Aurigma Image uploader to choose the images that were uploaded to server 1, select them, then upload them to server 2 using the aurigma image uploader.
I cannot access the server directly through POST methods, that is why I need to basically walk through the site using a created script, then have the script control which pictures to upload to server 2 based on what was uploaded to server 1. Clear as mud? :)
If I understand you right, you want to upload photos from server 1 (where you upload images using ‘web scripting’) to server 2 (‘another site that is password protected’) using Aurigma Image Uploader. Image Uploader does not support adding files to upload list from Java Script, this way, you cannot select files and initiate upload from your code.
Image Uploader sends files using HTTP POST requests, so you can try to form your own request compatible with Image Uploader API: POST Field Reference.

Categories