UploadFile
classe UploadFile (Voir la source)
Méthodes
                    __construct(array $file)
        
                                            
                
            UploadFile constructor.
                    string
                
                
                    getExtension()
        
                                            
                
            Get the file extension
                    string
                
                
                    extension()
        
                                            
                
            The is getExtension alias
                    string|null
                
                
                    getTypeMime()
        
                                            
                
            Get the file extension
                    int|null
                
                
                    getFilesize()
        
                                            
                
            Get the size of the file
                    bool
                
                
                    isUploaded()
        
                                            
                
            Check if the file is uploader
                    string|null
                
                
                    getBasename()
        
                                            
                
            Get the main name of the file
                    string|null
                
                
                    getFilename()
        
                                            
                
            Get the filename
                    string|null
                
                
                    getContent()
        
                                            
                
            Get the file content
                    string
                
                
                    getHashName()
        
                                            
                
            Get the file hash name
                    bool
                
                
                    moveTo(string $to, string|null $filename = null)
        
                                            
                
            Move the uploader file to a directory.
Détails
        
                            
    __construct(array $file)
        
    
    UploadFile constructor.
        
                            string
    getExtension()
        
    
    Get the file extension
        
                            string
    extension()
        
    
    The is getExtension alias
        
                            string|null
    getTypeMime()
        
    
    Get the file extension
        
                            int|null
    getFilesize()
        
    
    Get the size of the file
        
                            bool
    isUploaded()
        
    
    Check if the file is uploader
        
                            string|null
    getBasename()
        
    
    Get the main name of the file
        
                            string|null
    getFilename()
        
    
    Get the filename
        
                            string|null
    getContent()
        
    
    Get the file content
        
                            string
    getHashName()
        
    
    Get the file hash name
        
                            bool
    moveTo(string $to, string|null $filename = null)
        
    
    Move the uploader file to a directory.