Added max file length to constants
Added max file length exceeded error warning