Add file size limit. (25MB)

Added code to make sure the file is under the 25MB limit.