simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 350 forks source link

403 Forbidden Uploading Image #525

Open jamboljack opened 7 years ago

jamboljack commented 7 years ago

I uploaded web in other domain it's work uploading image, but i have another domain it's does'nt work.

A message in console : POST http://langgardalem.id/assets/filemanager/connectors/php/filemanager.php 403 (Forbidden)

I set file permission folder to 755

simogeo commented 7 years ago

Be sure the auth() method in config file returns true.

jamboljack commented 7 years ago

Where is the location of file ??

jamboljack commented 7 years ago

Oh,, I see,, wait

jamboljack commented 7 years ago

<?php /**

ob_start(); include('../../../../index.php'); ob_end_clean();

$CI =& get_instance(); $CI->load->driver('session');

$session = @$_SESSION['logged_in_langgardalem'];

if($session == TRUE) { $codeigniterAuth = true; } else { $codeigniterAuth = false; }

/**

jamboljack commented 7 years ago

auth

simogeo commented 7 years ago

I guess session_start() is missing

jamboljack commented 7 years ago

I activate CSRF protection on config CI, each Form have script like this : <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">

If i deactivate that fiture, it's success. But how set the filemanager with CSRF Protection ? where i must set the token ??

simogeo commented 7 years ago

it is not implemented