Welcome Guest, Not a member yet? Register   Sign In
File Uploading Class
#2

[eluser]CroNiX[/eluser]
Files don't get uploaded in $_POST with PHP, they're in $_FILES.

One thing to check is to make sure you are using the NAME of your file field in the controller.
If the file field was:
Code:
<input type="file" name="userfile" size="20" />

Since the name is "userfile" you don't have to do anything here (it's CI's default name):
Code:
$this->upload->do_upload();

But if it's different, like "userupload", then you'd have to:
Code:
$this->upload->do_upload('userupload');


Messages In This Thread
File Uploading Class - by El Forum - 09-24-2014, 08:38 AM
File Uploading Class - by El Forum - 09-24-2014, 09:20 AM
File Uploading Class - by El Forum - 09-24-2014, 09:20 AM
File Uploading Class - by El Forum - 09-24-2014, 09:41 AM
File Uploading Class - by El Forum - 09-24-2014, 11:35 AM
File Uploading Class - by El Forum - 09-24-2014, 12:04 PM
File Uploading Class - by El Forum - 09-24-2014, 12:29 PM
File Uploading Class - by El Forum - 09-24-2014, 01:07 PM
File Uploading Class - by El Forum - 09-24-2014, 01:16 PM
File Uploading Class - by El Forum - 09-24-2014, 01:20 PM
File Uploading Class - by El Forum - 09-24-2014, 02:21 PM
File Uploading Class - by El Forum - 09-25-2014, 04:02 AM
File Uploading Class - by El Forum - 09-26-2014, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB