Custom File size exception handling, file ext restriction