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.
Related
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.
I would like to ask is there a way to upload google drive file to AWS S3 in Laravel?
For example, I have this URL for the file from google drive.
https://drive.google.com/file/d/1egGhrx1nMUNOgZ8QALMMB9cOOodPKfBs/view?usp=sharing
Want to move it to AWS S3 without downloading in the directory?
GOOGLE
DRIVE FILE --- Direct Upload To----> AWS S3
Any help will be appreciated.
Thanks in advance.
I am developing an application which allows people to upload photos to an Amazon S3 instance.
Though I have just edited my PHP config variables to allow a maximum of 10mb per image, my webapp returns a 500 server error without any response whenever I try to upload a photo below but close to that 10mb maximum (like 9.4mb).
The projects is made up of a webapp built using NodeJS and a Laravel PHP API. The file upload runs via this webapp.
I would very much appreciate any idea on what I could do to resolve this or any experiences with AWS and photo upload.
Thanks!
I need to upload a video to YouTube but without the video being on my web server. I have videos on a separate storage server, and the PHP is on a web server, I understand and got it working to upload a video to YouTube which is in my public web server folder.
It's simply as you only need to provide the location of the file, like $videoPath=sfConfig::get('sf_root_dir').'/web/tmp.mp4', however, going on with this code my web server would have to download the file from my storage server and then set the path of the video, but that would lead to too much bandwidth usage of my web server. What I'd like to do is something like $videoPath="http://storageserverurl.com/tmp.mp4" but that isn't possible.
Here is the piece of code that downloads the file to the web server and sends it to YouTube, it's working without problems.
file_put_contents("tmp.mp4", file_get_contents("http://storageserver.com/tmp.mp4"));
$videoPath=sfConfig::get('sf_root_dir').'/web/tmp.mp4';
I'd like it to be something like $videoPath="http://storageserver.com/tmp.mp4";
The rest of the code is the sample code given by Google. I'm using PHP 5.6.3 with symfony 1.4.
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.