vikdiesel / justboil.me

Justboil.me — A very simple TinyMCE image upload plugin
https://justboil.marketto.ru/
121 stars 46 forks source link

Unable to upload image #6

Open gazambuja opened 9 years ago

gazambuja commented 9 years ago

Always show this error: "Result: You did not select a file to upload."

gazambuja commented 9 years ago

Solution: Change the action code in the dialog-v4.htm to this code:

 <form class="form-inline" id="upl" name="upl" action="ci/?upload/english" method="post"
 enctype="multipart/form-data" target="upload_target" onsubmit="jbImagesDialog.inProgress();">
samgavinio commented 9 years ago

Hi, this may be an issue due to htaccess. Codeigniter out of the box needs index.php in the url to be able to route properly. You must have added a rule to htaccess that removes the index.php from the routes. The following rules makes CI work with or without index.php in the URLs:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]