Upload a swf / video file ?

hello ,

i need help about uploading a swf/video file using yii framework . any idea? or just by the normal up-loader without validation on the type

Assume This one is exactly what are u looking for swfupload extension

You could and should use file validation, to prevent users upload non video files as videos(it can be security risk too, depending how you setup your system).

You can use something like:


array('videoFile', 'file', 'allowEmpty'=>true, 'types'=>'swf, flv')

in your rules function of upload model(or form) for videos.

NOTE: merged duplicate post… (there is no need to make duplicate posts in different forum sections)