Coder Social home page Coder Social logo

Comments (4)

nilshaebel avatar nilshaebel commented on August 19, 2024 1

As described by @Aradea08 there is a relatively easy solution to this. Open the MY_Upload.php file which you've stored inside your application/library folder. Go to line 381.

This is what it currently says:
$this->file_name = $this->clean_file_name($this->file_name);

Replace the whole line with:
$CI =& get_instance();
$this->file_name = $CI->security->sanitize_filename($this->file_name);

That's it!

from codeigniter-multi-upload.

Aradea08 avatar Aradea08 commented on August 19, 2024

sanitize file name done...

is uset $CI =& get_istance on calling security->sanitize_filename() fiunction...thanks

from codeigniter-multi-upload.

mayank-mehrotra avatar mayank-mehrotra commented on August 19, 2024

Can you please help me I am getting: Message: Call to a member function sanitize_filename() on Line Number: 515 on null when try to upload the file. I have tried your solution but it's not working I am using codeigniter 3.1.9 and PHP 7.1.9 Please help it's very urgent Thanks in advance

from codeigniter-multi-upload.

azhargiri avatar azhargiri commented on August 19, 2024

Can you please help me I am getting: Message: Call to a member function sanitize_filename() on Line Number: 515 on null when try to upload the file. I have tried your solution but it's not working I am using codeigniter 3.1.9 and PHP 7.1.9 Please help it's very urgent Thanks in advance

Hi @mayank-mehrotra, may be you want to try my PR #36. I try to fix this issue.

Thanks

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.