Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Though this question is old I will provide a solution I found that may assist. I had been tied up trying to resolve this issues for about two week and in those two weeks I have scanned through this question with limited help until I found the solution. </p> <p>To clarify. </p> <p>I hit success while using $.ajaxFileUpload I read that you are using malsup. I have to clarify that I used both of them and neither was working for the 2 weeks period.</p> <p>The solution to my problems was with the .htaccess. By removing its contents and testing the application again I found out that indeed it was working with index.php at the url. Therefore I sought to investigate. I found out that my file was indeed been uploaded but being lost during redirection. </p> <p>I therefore suggest that :</p> <ol> <li>Head over to .htaccess</li> <li>Under RewriteBase change the location to the primary folder where your code is located. </li> </ol> <p>at the end your .htaccess should look as follows</p> <pre><code>RewriteEngine On RewriteBase /CI_website/ #CI_website is folder where my codeigniter files are located. #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. #'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] #When your application folder isn't in the system folder #This snippet prevents user access to the application folder #Submitted by: Fabdrol #Rename 'application' to your applications folder name. RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload