Friday, March 16, 2012

[YouTube-API] Memory Problems (CodeIgniter PHP)

Hey there!

I'm having issues with memory and direct uploads. I'm using the PHP CodeIgniter library for the YouTube API, but the directUpload() function is giving me some problems. I got it working, sure, but from a memory standpoint, this is not working.

Basically, I am attempting to upload files to YouTube via their URL, as they are stored on a separate server. To do this, I am reading the file, writing it to a temporary file on my own server, and then uploading that temporary file. However, as you can imagine, this is a major memory issue. I guess I have two questions:

  1. Is it possible to directly upload files via their URL using the PHP YouTube API?
  2. If not, how would I--using the CodeIgniter API--send only chunks of data at once? Is there a way I can modify the directUpload() function to support this? It seems doable, but I don't quite understand how the resumable uploads work.


Thanks!

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/YZjvDDmxw3QJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment