Comments (4)
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.
sanitize file name done...
is uset $CI =& get_istance on calling security->sanitize_filename() fiunction...thanks
from codeigniter-multi-upload.
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.
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)
- Codeigniter 2.2.0 HOT 6
- Problem changing filenames HOT 2
- Resize on upload HOT 8
- get_multi_upload_data() returns an empty array? HOT 2
- How to get All uploaded file names HOT 2
- Display files that failed to upload HOT 1
- files dats array
- Advanced feature + script
- Upload Runtime Notice HOT 6
- Oh, that's a piece of sh*t HOT 1
- 500 internal server error when uploading lots of files HOT 1
- Unable to locate the specified class: Session.php
- Declaration of MY_Upload should be compatible with CI_Upload HOT 1
- Declaration of MY_Upload should be compatible with CI_Upload HOT 8
- Call to undefined method MY_Upload::clean_file_name() HOT 1
- Can't Display get_multi_upload_data HOT 2
- Update library for run in CodeIgniter 3.x HOT 1
- Insert to database HOT 2
- Not working when i select attachments one by one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-multi-upload.