updated to throw exception if new item is of 0 or >240 length.
added condition to check for filetype and save accordingly
added exceptions for inputs longer than 125 characters