[eluser]Unknown[/eluser]
Hi, I implemented file upload class to my application but I have a weird issue with CI and file upload class.
I am using MAMP 2.2 as localhost.
The first time I used this class I did it using CI tutorial and I was receiving a "requested has timed out". I checked everything, php max upload limit, php timerequest but no success. Then I tough my code was the problem so I redo the CI tutorial several times with no success.I was Always getting "requested has timed out". Suddenly by accident I double-click my form and the application worked. Then I tried the the form forcing an error( no selecting a file, or choosing a extension that I did not want to upload) and after forcing the error , I tried the form whit valid values and the form worked with only one click. At that moment I supposed that it was a problem with the URL. I changed in my confing.php
$config['index_page'] = 'index.php'
$config['uri_protocol'] = 'REQUEST_URI';
to
$config['index_page'] = 'index.php'
$config['uri_protocol'] = 'ORIG_PATH_INFO';
But I got the opposite. uploading with out an error was available with one click and double click with an error.
I proceeded to try all the configuration in config.php including
$config['index_page'] = 'index.php?'
but nothing!!!!!!
Does anyone know what is the problem and how I can fix it? again my code is the CI upload tutorial and I am using mamp 2.2
Thanks!