android - Video Uploading not working in YII -


I have a strange phenomenon.

We are using Wi for web service with Android and iOS. Mobile has video uploading page.

This UI has the video uploading code:

  $ file_path_image = ""; $ Directory = 'images / post'; $ file_path_video = ""; $ Model = new Tbl community (); If (isset ($ _ files ['video'])) {$ file = $ _FILES ['video']; Print_r ($ file); $ videoID = $ model- & gt; Match-random string (); $ video_obj = new video upload (); $ Result = array (); $ video_result_temp = $ video_obj- & gt; Upload ($ file, $ Video ID, $ directory); $ Result = cgsson :: decode ($ video_result_temp); If (isset ($ result ['position']) & amp; amp; amp; amp; amp; amp; amp; amp; $ result ['condition'] == 'failed') {$ result ['response'] = array; $ Result ['condition'] = 'failed'; $ This- & gt; _sendResponse (201, CJSON :: Encoded ($ result)); } And {$ file_path_video = Yii :: app () - & gt; Consult ['BASE_URL']. $ Result ['path']; }}   

The above code will work for small size video.

But when the mobile people start uploading large size or up to 5 MB, I do not get any data

It is wasting my full time of a week.

What is the reason for this strange behavior?

All are helpful.

When sending large sized video, Yii to undefined index 'Video' .

Did you check it already?

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -