We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Tiny MCE + TinyBrowser...No Upload Privilegies

Development and Programming

osadmin's avatar
osadmin
19 posts
16 years ago
osadmin's avatar osadmin

HI

I have switch the server that my site sat on. Everything is working fine as I made sure all server paths were identical etc. The only issue is when trying upload a file using tinybrowser, it immediately says “no upload privilegies”. I tracked this mis-spelt error back to this bit of code…..anyone any ideas??

thanks

if (isset($_SESSION[$name]))
                {
                                $tinybrowser['sessioncheck'] = $name; 
                                $_SESSION[$tinybrowser['sessioncheck']] = TRUE;

                                // Image files location - also creates a '_thumbs' subdirectory within this path to hold the image thumbnails
                                $tinybrowser['path']['image'] = $_SESSION[$name.'folder_path']; 
                                // Media files location
                                $tinybrowser['path']['media'] = $_SESSION[$name.'folder_path']; 
                                // Other files location            
                                $tinybrowser['path']['file']  = $_SESSION[$name.'folder_path']; 

                                // Image links
                                $tinybrowser['link']['image'] =  $_SESSION[$name.'folder_url'];
                                // Media links
                                $tinybrowser['link']['media'] =  $_SESSION[$name.'folder_url'];
                                // Other file links
                                $tinybrowser['link']['file']  =  $_SESSION[$name.'folder_url']; 

                                // Image file maximum size
                                $tinybrowser['maxsize']['image'] = $_SESSION[$name.'file_maxsize']; 
                                // Media file maximum size
                                $tinybrowser['maxsize']['media'] = $_SESSION[$name.'file_maxsize']; 
                                // Other file maximum size
                                $tinybrowser['maxsize']['file']  = $_SESSION[$name.'file_maxsize']; 

                                // Permitted file extensions
                                // Image file types
                                $tinybrowser['filetype']['image'] = $_SESSION[$name.'flt_image'] ; 
                                // Media file types
                                $tinybrowser['filetype']['media'] = $_SESSION[$name.'flt_media'] ; 
                                // Other file types
                                $tinybrowser['filetype']['file']  =$_SESSION[$name.'flt_file'] ; 
                                                                
                                // Default image view method
                                $tinybrowser['view']['image'] =$_SESSION[$name.'image_view']; // Possible values: thumb, detail

                                // File Pagination - split results into pages (0 is none)
                                $tinybrowser['pagination'] = $_SESSION[$name.'pagination'];

                                // Image automatic resize on upload (0 is no resize)
                                $tinybrowser['imageresize']['width']  = $_SESSION[$name.'resize_width'] ;
                                $tinybrowser['imageresize']['height'] = $_SESSION[$name.'resize_height'] ;

                                // Image thumbnail size in pixels
                                $tinybrowser['thumbsize'] =$_SESSION[$name.'thumbsize'];

                                // Image and thumbnail quality, higher is better (1 to 99)
                                $tinybrowser['imagequality'] = $_SESSION[$name.'imagequality'];// only used when resizing or rotating
                                $tinybrowser['thumbquality'] = $_SESSION[$name.'thumbquality'];
                                
                                // Assign Permissions for Upload, Edit, Delete & Folders
                                $tinybrowser['allowupload']  = $_SESSION[$name.'allowupload'];
                                $tinybrowser['allowedit']     = $_SESSION[$name.'allowedit'];
                                $tinybrowser['allowdelete']  = $_SESSION[$name.'allowdelete'];
                                $tinybrowser['allowfolders'] = $_SESSION[$name.'allowfolders'];
                                $tinybrowser['tinymce_url'] = (isset($_SESSION['tinymce_url'])) ? $_SESSION['tinymce_url'] : '' ;
                                // Set the integration type (TinyMCE is default)
                                $tinybrowser['integration'] =   (isset($_SESSION[$name.'integration'])) ? $_SESSION[$name.'integration'] : 'stand_alone';  
                                // Clean filenames on upload
                                $tinybrowser['cleanfilename'] = $_SESSION[$name.'cleanfilename'] ;
                                // TinyMCE dialog.css file location, relative to tinybrowser.php (can be set to absolute link)
                                $tinybrowser['tinymcecss'] = $tinybrowser['tinymce_url'].'themes/advanced/skins/default/dialog.css';
    
                                // Set default language (ISO 639-1 code)
                                $tinybrowser['language'] = (isset($_SESSION['language'])) ? $_SESSION['language'] : 'en';


                } else { 
                                if (basename($_SERVER['PHP_SELF']) == 'style_tinybrowser.css.php' OR basename($_SERVER['PHP_SELF']) == 'tb_tinymce.js.php') {
                                                $tinybrowser['thumbsize'] = 80;
                                } else {    
                                                exit('No Upload Privilegies');
       
Yuri's avatar
Yuri
315 posts
16 years ago
Yuri's avatar Yuri

kreate, check 2, or better 3 times, whether you really have priviledges 😊 I.e. proper upload directory is set up in field preferences I have just spent several hours fighting with the problem - and the solution was so simple!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.