Welcome Guest, Not a member yet? Register   Sign In
Codeigniter video upload
#1

[eluser]swgj19[/eluser]
I am following a tutorial on how to upload a video using the codeigniter framework. I thought this would be simple, but it is not working. Here is the site
Tutorial
that I am following in the tutorial. I did modify the code to fit my needs. Please look at my code and if you have time let me know what I am missing and why it is not working.

I have two problems:
1) Error on upload size (Yes, I have adjusted size in controller and size in php.ini)
Here is a pic of the problem
2) The video frame is showing, but the video on server is not showing.

Here is all the code at this link

Thank you for all your help..
#2

[eluser]InsiteFX[/eluser]
PHP.INI File:
Code:
; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = On

// NOTE: These two below have to both match on the size.

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 128M

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 128M

I am looking into this for you swgj19
#3

[eluser]swgj19[/eluser]
Thanks, I will also see what I can come up with and make the changes you showed.
#4

[eluser]CroNiX[/eluser]
The error is saying your post_max_size is too small. It should be set greater than or equal to upload_max_filesize.
#5

[eluser]InsiteFX[/eluser]
@swgj19

All fixed emailed you with link to my server for download.
#6

[eluser]swgj19[/eluser]
@CroNiX: Thanks a million. You were absolutely correct. I kept on adjusting till the video said "upload success". I used 50000M for the post_max_size and the upload_max_size.

@InsiteFX: Thanks buddy. I was so close, I did not know that with the CodeIgniter File Upload method, the method has to be named do_upload, instead of show_video. Works perfect.




Theme © iAndrew 2016 - Forum software by © MyBB