September 21, 20169 yr Hello all, I'm using CodeIgniter and I'm attempting to upload video files. Here's my snippet of code for the view: <input type="file" name="userfile" class="userfile" /> And here's the snippet of code for the controller: $file_name = $_FILES['userfile']['tmp_name']; if(filesize($file_name) == 0) { exit('File does not exist!'); return FALSE; } I have an exact similair piece of code for my upload images file and it works fine, however, my video file upload just does not retrieve the file name or file size. I've googled everywhere but I can't find any answers to this problem. Can anyone help? Thanks in advance.
September 23, 20169 yr Author Thanks for replying Nock but I've tried the suggested code but it still doesn't seem to pick up the file at all, (it still goes into the if function), as there's no file. I'll keep trying different methods.
Create an account or sign in to comment