CodeIgniter Forums
Client needs to upload large video files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Client needs to upload large video files (/showthread.php?tid=23663)

Pages: 1 2


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]NateL[/eluser]
So I'm working on a project now where the client needs a portfolio. The portfolio consists of only video work, so I need to code a backend which allows the script to bypass the typical 2mb limit that a host provides.

The .FLV's are typically 15-80mb in size.

How would you handle large file uploads?

Would you go with something like jQuery and AJAX? or would CodeIgniter play nicely with a CGI script?

Suggestions? Thanks Smile


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]BrianDHall[/eluser]
I would definately go with a mix of AJAX or AJAX/Flash uploader, then you should still be able to handle the uploaded file with codeigniter. Be sure to be careful of session lifetime (if a session times out during a file upload you might be taken be surprise on why certain files don't upload quite right), script max execution time, and of course setting the max uploadable file size to large enough to handle the file.

The main reason I prefer ajax/flash uploader combinations is they provide the user with the sort of feedback they need, like file size of chosen file, upload speed, and how long until completion. Without this info the user will tend to run into problems with script timeouts on the user side, or wondering "what on earth is going on..." when it might be hours before a file finishes uploading.


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]John_Betong[/eluser]
[quote author="BrianDHall" date="1255932296"]I would definately go with a mix of AJAX or AJAX/Flash uploader, then you should still be able to handle the uploaded file with codeigniter. Be sure to be careful of session lifetime (if a session times out during a file upload you might be taken be surprise on why certain files don't upload quite right), script max execution time, and of course setting the max uploadable file size to large enough to handle the file.

The main reason I prefer ajax/flash uploader combinations is they provide the user with the sort of feedback they need, like file size of chosen file, upload speed, and how long until completion. Without this info the user will tend to run into problems with script timeouts on the user side, or wondering "what on earth is going on..." when it might be hours before a file finishes uploading.[/quote]
 
http://www.uploadify.com/
 

My friend uses this JQuery plugin for his http://pixavid.com site and it seems an ideal solution. I am going to give it a try on my latest CI project.
 
 
 


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]NateL[/eluser]
heh

Great timing John. As *soon* as you responded, I finished up my first successful upload with Uploadify..hehe..looks like this is the direction I will take Smile

My next challenge is the workflow for uploading a video, uploading a JPG that will serve as the thumbnail, adding a title, and adding a description.

Seeing as Uploadify works on an AJAX basis and is an immediate thing, how would you manage this workflow?

Is there a way with Uploadify to specify two upload fields - one as the video, one as the thumbnail? and then I need to some how associate the title and description with the video.


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]BrianDHall[/eluser]
For ease, I'd handle the naming/tagging/thumbnailing as a separate step. First the loading, then you "click when done" to go to a screen that will list the files uploaded and offer thumbnail uploads and tagging.


Client needs to upload large video files - El Forum - 10-18-2009

[eluser]NateL[/eluser]
[quote author="BrianDHall" date="1255940404"]For ease, I'd handle the naming/tagging/thumbnailing as a separate step. First the loading, then you "click when done" to go to a screen that will list the files uploaded and offer thumbnail uploads and tagging.[/quote]

Seems logical - I will give it a shot. Thanks!

Any other suggestions would be great Smile


Client needs to upload large video files - El Forum - 10-19-2009

[eluser]daparky[/eluser]
You could try something like this: http://xtrafile.com/xu/

All that was built in Codeigniter, get files here: http://xtrafile.com/products/xtraupload-v2/

Let me know how you get on.


Client needs to upload large video files - El Forum - 10-19-2009

[eluser]mysoogal[/eluser]
[quote author="daparky" date="1255991689"]You could try something like this: http://xtrafile.com/xu/

All that was built in Codeigniter, get files here: http://xtrafile.com/products/xtraupload-v2/

Let me know how you get on.[/quote]

thank you very much dude, i was looking for this ! now i find thank you very much ! Smile


Client needs to upload large video files - El Forum - 10-20-2009

[eluser]daparky[/eluser]
Anyone done an uploader?


Client needs to upload large video files - El Forum - 10-26-2009

[eluser]Unknown[/eluser]
[quote author="daparky" date="1256074541"]Anyone done an uploader?[/quote]

Hi,

I've not done one as in written one from scratch, but I did check out quite a few (some with code, some without) before deciding on uploadify which I find works very well, and with jquery if you're into that. The only drawback is that your users will need flash installed, plus javascript enabled. A small price to pay for 'seeing' upload progress. You can view the implemented version at pixavid or there are a few samples on the uploadify.com site too.

Cheers,

Martin.