I created a website using Codeigniter and mysql. There is a form for users where they upload their pictures. When I upload a picture to test it, it works fine. But sometimes, when someone else uploads a picture, it doesn't work. How can I know the actual problem?
There are many ways to debug a file upload issue. Most certain checks to implement in code are:
https://www.DOMAINNAME.com/directoryName/fileName.extensionYou can check in php.ini file for following directives:
upload_max_filesize & post_max_size
If there is low upload_max_filesize or post_max_size is set it will not upload files.
You can verify both values in using phpinfo(); method