added file size vs form size safety check