I'm having a problem with uploading files through FCKeditor. Every time I open the browser I get this message:
It appears to be connected with my .htaccess file:
I use this because it's simply the way my framework work (for seo url's and stuff like that). As you can see, everything is redirect to index.php except for files and folders that actually exists. If I remove the code, the uploader works fine.
Does anyone have an idea about what I should add to my .htaccess file to get the uploader working?
Error creating folder: "redirect:/index.php/image" (can't create redirect: directory)
It appears to be connected with my .htaccess file:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
I use this because it's simply the way my framework work (for seo url's and stuff like that). As you can see, everything is redirect to index.php except for files and folders that actually exists. If I remove the code, the uploader works fine.
Does anyone have an idea about what I should add to my .htaccess file to get the uploader working?
Re: Problem with file upload
FIrst I tried increasing Apache's mod-rewrite logging like this:
Then I noticed that the userfiles/ folder was being subjected to redirection (I have some similar rules to yours. So I inserted a new rule ahead of the troublesome ones:
This tells Apache that when it gets a request for userfiles/, it should skip all further rule processing and handle the userfiles/ request as-is. That seemed to fix it.
Don't forget to put your RewriteLogLevel back to 0 when you've done with it.
Rick
Re: Problem with file upload
My CMS redirects everything so I was having the same problem.
I discovered that the problem related only to creating the directory so I just created it manually:
userfiles/images
was what it wanted. After that, everything was fine.
Re: Problem with file upload
My .htaccess at the root is the standard Drupal one with :
RewriteEngine on
RewriteRule ^files/.* - [L]
RewriteRule ^userfiles/.* - [L]
etc etc....
I put both files and userfiles there as I tried files first (which is where Drupal is trying to access I think)...
It isn't working.. Same error. Any alternative advice?
Re: Problem with file upload
Problem with file upload
If you have problem with uploading file firsly try to complete your chache.If you are using the Upload Folders you must have java installed on your computer.Make sure you are uploading files smaller than the 5GB maximum.