06-14-2016, 05:50 AM (This post was last modified: 06-14-2016, 07:47 AM by Aneri.)
Hello,
I am developing a web app. The config details of the same are as follows:
App server - EC2 , Redhat Linux Website - Developed in PHP using MVC architecture based on CodeIgniter.
I have a form where I am taking details for User case. I want to allow the user to be able to upload multiple attachments till 5 mb.
1. Everytime a user selects a file I want to display name of the file and the file size. There should be a X button next tio it.
2. Lets say the user has uploade 2 files and they add up to be 4 MB and he has another file of 2 MB, the app wont allow becoz of the 5 MB limitation. So an error will be displayed
3. Now if user feels file1 and file3 are more important, user should be able to click on the X and delete the file 2.
Initially I am trying a simple upload without having to show the file names etc. So that I know the functionality works. But the code is giving some problem and no error. Kindly read below and let me know what I am doing wrong.