Welcome Guest, Not a member yet? Register   Sign In
File Upload class
#4

[eluser]The Casual Bot[/eluser]
arrh fixed it
theres a bug in the upload.php


Code:
// Images get some additional checks
if (in_array($val, $image_types))

but $val is not the file extension

so by change the order of allowed file types it now works

ie

Code:
$config['allowed_types'] = 'docx|pdf|doc|xls|xlsx|tiff|jpeg|gif|jpg|png';


Messages In This Thread
File Upload class - by El Forum - 12-07-2009, 07:02 AM
File Upload class - by El Forum - 12-07-2009, 07:07 AM
File Upload class - by El Forum - 12-07-2009, 07:17 AM
File Upload class - by El Forum - 12-07-2009, 07:47 AM
File Upload class - by El Forum - 12-17-2009, 08:20 AM
File Upload class - by El Forum - 12-17-2009, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB