Problem with uploading a video from a disk

Subscribe to Problem with uploading a video from a disk 3 posts, 2 voices

 
Avatar igor 3 posts

Hi

Although, there is very simple example, for some reason I can’t make it work. I have the following code:

Base::establish_connection! :login => 'login', :password => 'password'
raw_video = HeyWatch::Video.create(:file => absolute_path_to_video_on_disk, :title => filename)

I tried with relative path, but wasn’t finding the video. So, when I execute this code, I get error:

Cannot retrieve info from this video – (HeyWatch::RequestError)

I am not sure what this error means and what I am doing wrong. Any help would be appreciated.

Thanks.

 
Avatar Bruno Celeste 356 posts

I know there is a problem using Windows, I don’t know why. Do you use Windows?

 
Avatar igor 3 posts

Yes, I use Windows for development but Ubuntu for deployment. If Windows is the problem then I am fine. I will test this functionality on Linux.

Thanks a lot.