Model Sanitize clean problems
    
        
                
            
                
                    Hi, 
I am currently building a model which has text inputs, a pdf upload and image upload fields.
Now i have built the form I have been trying to make it secure for upload.
I have found that if I upload a file, either a PDF or Image with a bad file name i.e test3^&.2@.jpg or testthis pdf.pdf the files get cleaned and then get placed in the specified folder on the server but when the filename gets stored in the database its the unclean origional.
How can I stop this? The database filename needs to be the same as the one thats been cleaned and uploaded to the server.
Thanks                
                             
         
     
 
                 
            
Comments
No, I have been working on this project since october. Will the updated files effect the current project?
Much appreciated.