Coder Social home page Coder Social logo

Comments (6)

wmandai avatar wmandai commented on August 19, 2024 3

Solution for Codeigniter 3
Open MY_Upload.php around line 32 replace with;
public function initialize(array $config = array(), $reset = TRUE){
then change line 385 to
$this->file_name = sanitize_filename($this->file_name);

Remember to load $this->load->helper('security'); in your Controller

from codeigniter-multi-upload.

goosehub avatar goosehub commented on August 19, 2024

I would assume (or at least hope) that Codeigniter 3 has multi-upload ability built it. I would also assume that Codeigniter 3 is going to break a lot of libraries, such as this CodeIgnite-Multi-Upload.

from codeigniter-multi-upload.

ayyazzafar avatar ayyazzafar commented on August 19, 2024

I am getting this error when I tried to upload file:

Severity: Runtime Notice

Message: Declaration of MY_Upload::initialize() should be compatible with CI_Upload::initialize(array $config = Array, $reset = true)

Filename: libraries/MY_Upload.php

Line Number: 444

Please guide us that how can we resolve this issue?

from codeigniter-multi-upload.

goosehub avatar goosehub commented on August 19, 2024

@ayyazzafar are you using CodeIgniter 2 or 3?

from codeigniter-multi-upload.

 avatar commented on August 19, 2024

I modify a new version support "CodeIgniter 3"

from codeigniter-multi-upload.

abner-carvalho avatar abner-carvalho commented on August 19, 2024

In My_upload.php file replace the line 385 by the following code

//Sanitize the file name for security.
$this->file_name = sanitize_filename($this->file_name);

// Sanitize the file name for security
$this->file_name = $this->_CI->security->sanitize_filename($this->file_name);

from codeigniter-multi-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.