Changed the way it saves the file because of security issue and not behaving how I wanted