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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -