I'm working on my program where the user will upload images to the document/folder. There is a modify image button on my page where the user can edit or add some information to the image.
This is the URL for uploads: SAMPLE/index.php/document
Then I uploaded the sample.jpg
// it works on modify
Again, I uploaded new image. This time with spacial characters sample_(3)1.jpg
// didn't work! The URI you submitted has disallowed characters.
This is the URL for modify: SAMPLE/index.php/document/modify_document/sample_(3)1.jpg
I had tried to include validation on URI and refer to this disallowed characters, but the problem is some of my web pages got affected. (I have lots of pages on my web site)
What I think could be the best solution for this is to notify the user that uploading files with special characters is not allowed. I don't know how to do this in CodeIgniter. If you have any idea please do not hesitate to post your answer. Thanks!