Getting TinyMCE Tinybrowser to upload directly into CakePHP webroot -
i have tinybrowser plugin working tinymce file uploads. working great long upload /app/uploads/ folder. unfortunately means images (etc) aren't available display application front end. haven't had success setting symlink between 2 locations (php symlink() fails silently) looks option upload /app/webroot/uploads/ directory instead.
the difficulty here when upload path changed /app/webroot/uploads/, application goes infinite recursion. guess .htaccess rules on /webroot/ have no idea how fix it.
any ideas problem might , can fix it? appreciated.
.htaccess mod_rewrite cakephp default:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.*)$ index.php?url=$1 [qsa,l] </ifmodule> #far-future caching <filesmatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> header set expires "thu, 15 apr 2010 20:00:00 gmt" </filesmatch> options +followsymlinks
i think url problem. url directory /app/uploads/ specified in tinymce directory or in plugin directory. can change url.
i got upload plugin working in tinymce , change of url working. think there no problem .htaccess
Comments
Post a Comment