php - tinymce plugin to upload images -


i using plugin tinymce upload images (justboil.com)

i uploading images on

sub.domain.com/upload.php 

and upload folder located at

domain.com/file_dump/tinymce_file_upload 

i have put in config

$config['img_path'] = '/file_dump/tinymce_file_upload'; // relative domain name $config['upload_path'] = substr($_server['document_root'],0,-3) . $config['img_path']; // physical path. [usually works fine this] 

it gets document_root , removes 3 characters (for subdomain) sub folder sub domain located in public_html folder

i getting error saying upload path invalid when try upload images

your upload path looks '//' domain.com//file_dump/tinymce_file_upload

so remove '/' $config['img_path']

$config['img_path'] = 'file_dump/tinymce_file_upload';


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -