Welcome Guest, Not a member yet? Register   Sign In
File Upload Class File type problem
#2

[eluser]RJ[/eluser]
I tried changing the file name before initilizing the upload class like this:
Code:
$tmp = substr($_FILES['userfile']['name'], 0,(strpos($_FILES['userfile']['name'],'.')+1));
$_FILES['userfile']['name'] = $tmp . 'txt';

But doesn't work, must be something in the temp name, any thoughts how I can fix this? If I change the files to .txt they upload fine, when they're .log it errors out every time.

Thanks


Messages In This Thread
File Upload Class File type problem - by El Forum - 02-05-2010, 09:13 AM
File Upload Class File type problem - by El Forum - 02-05-2010, 10:11 AM
File Upload Class File type problem - by El Forum - 02-08-2010, 09:52 AM
File Upload Class File type problem - by El Forum - 02-08-2010, 10:24 AM
File Upload Class File type problem - by El Forum - 02-08-2010, 02:30 PM
File Upload Class File type problem - by El Forum - 02-08-2010, 02:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB