I want user to upload files to the server so I am using
something like this.
file = new FileReference();
I want to certain database entries only of they have uploaded
file successfully. My problem is even sometimes it won't upload the
files because I gave the path wrong it always run the fuction
fileUploaded. it never goes to the error. What should I use to make
sure that it has uploaded the file and not giving an error.