Skip to content
Advertisement

error in file uploading codeIgniter

Below is the code for my controller….

JavaScript

After this call this function where You want to make this upload…in controller

JavaScript

but file is not uploaded…….why?

Advertisement

Answer

Hope this will help you :

Your do_upload method should be like this :

JavaScript

UPDATE :

set upload_max_filesize in your php ini greater than 2MB,

if it is wamp just follow :

click on wamp => php => php settings => upload_max_filesize

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement