Skip to content

403 Forbidden Uploading Image #525

Open

Description

@jamboljack

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

Activity

  1. simogeo commented on Feb 4, 2017

    @simogeo
    Owner

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

  2. reopened this on Feb 4, 2017
  3. jamboljack commented on Feb 6, 2017

    @jamboljack
    Author

    Where is the location of file ??

  4. jamboljack commented on Feb 6, 2017

    @jamboljack
    Author

    Oh,, I see,, wait

  5. jamboljack commented on Feb 6, 2017

    @jamboljack
    Author
    * @copyright Authors */ 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; } /** * Check if user is authorized * * * @return boolean true if access granted, false if no access */ function auth() { // You can insert your own code over here to check if the user is authorized. // If you use a session variable, you've got to start the session first (session_start()) return $GLOBALS['codeigniterAuth']; } // we instantiate the Filemanager $fm = new Filemanager(); ?>
  6. jamboljack commented on Feb 6, 2017

    @jamboljack
    Author

    auth

  7. simogeo commented on Feb 7, 2017

    @simogeo
    Owner

    I guess session_start() is missing

  8. jamboljack commented on Feb 8, 2017

    @jamboljack
    Author

    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 ??

  9. simogeo commented on Feb 8, 2017

    @simogeo
    Owner

    it is not implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions