79498

Debugging Responsive File Manager Plugin (TinyMCE)

Question:

Yesterday I found this great looking plugin for file and image management for tinymce however I cannot get the files to actually save to the drive. I have tried every commbination I can think of.

responsivefilemanager.com - This plugin.

Anyone used it before and know of the settings I might need?

The plugin sits here: <strong>/public_html/cms/app/webroot/js/tinymce/plugins/filemanager</strong>

I'm trying to set it up so the uploads go here: <strong>/public_html/cms/app/webroot/files/cms</strong>

The config file for the plugin has 3 lines to configure for this, these are as follows and as I have set them up:

$base_url="http://domain.com/cms/"; // base url of site. If you prefer relative urls leave empty $upload_dir = 'app/webroot/files/cms/'; // path from base_url to base of upload folder $current_path = '../../../files/cms/'; // relative path from filemanager folder to upload folder

Now when I started working this out I would get an error for the plugin saying the root folder doesn't exist so I keep playing with the paths and now I don't get this error but I still cannnot get it to upload the images, everything looks like it works, I get the preview as the image is uploading and a green tick once it's complete then I go back to the files list and the image isn't there. It's not on the server either. I'm wondering if there is a way to debug this and work out what's happening?

Thanks

Answer1:

I ended up getting this to work with the following settings:

$base_url="http://domain.com"; // base url of site. $upload_dir = '/cms/app/webroot/files/cms/'; // path from base_url to base of upload folder $current_path = '../../../../files/cms/'; // relative path from filemanager folder to upload folder

Thanks

Answer2:

Try the following settings if you still have not got this sorted out yet:

$base_url="http://www.domain.com/cms"; // base url of site. If you prefer relative urls leave empty --> No trailing slash

// The upload directory will be a dir you have created for the files to be uploaded to, ie: localhost/cms/app/webroot/files/cms --> this file must have write permission.

$upload_dir = '/app/webroot/files/cms/'; // path from base_url to base of upload folder --> write permission (chmod = 755)

$current_path = '../../../../files/cms/'; // relative path from filemanager folder to upload folder (you are missing one "../")

// The thumbs folder located in tinymce/plugins/filemanager/thumbs must also have write permission (chmod = 755)

That should do it

Answer3:

use gsynuhimgupload plugin TinyMCE

<a href="http://gsynuh.com/tinymce-simple-image-uploader/136" rel="nofollow">http://gsynuh.com/tinymce-simple-image-uploader/136</a>

TinyMCE simple image uploader

Here’s a repost of my TinyMCE image uploader plugin. It used to be on gsynuh-labs.com (but I let this domain go). please note that this plugin is no longer supported by me – and I’m not responsible for any inconvenience caused by it, it is shared “as-is” and you have to be responsible when using it ie: take care of any possible injection problems/security problems in your own site’s context. I’m not interested in expanding it myself as I was only looking for a very minimal image uploading plugin for myself but If you are going to expand on it, I can list your version on this page if you want, just contact me.

Recommend

  • Add watermark to image (Base64) and convert it
  • Django how to modify database records by template
  • Gradle test fails with NullPointerException
  • Can I put a + sign in a folder with IIS?
  • Grails eager fetch doesn't retrieve all data
  • C# Remove URL from String
  • Open hyperlink on click on an ggplot/plotly chart
  • Symfony2 redirect to https route fails (uses wrong port)
  • Entity Framework ObjectContext: Concurrency
  • Want to understand iframe breakout code
  • Spring: No transaction manager has been configured
  • accepts_nested_attributes_for practical form use for in Rails 3
  • Object and struct member access and address offset calculation
  • Should I or shouldn't I use the CachingConnectionFactory with hornetq 2.4.1
  • Jackson Parser: ignore deserializing for type mismatch
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • Email verification using google app script and google forms
  • How to use remove-erase idiom for removing empty vectors in a vector?
  • Read a local file using javascript
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Why is an OPTIONS request sent to the server?
  • Optimizing database types to compact database (SQLite)
  • How do I fake an specific browser client when using Java's Net library?
  • ILMerge & Keep Assembly Name
  • Symfony2: How to get request parameter
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • Do I've to free mysql result after storing it?
  • QuartzCore.framework for Mono Develop
  • Python - Map / Reduce - How do I read JSON specific field in using DISCO count words example
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Turn off referential integrity in Derby? is it possible?
  • Append folder name and increment by 1 using batch script
  • JaxB to read class hierarchy