Populate FILE field with default text
        Posted  
        
            by dclowd9901
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dclowd9901
        
        
        
        Published on 2010-05-19T01:50:53Z
        Indexed on 
            2010/05/19
            2:00 UTC
        
        
        Read the original article
        Hit count: 308
        
I'm trying to reutilize code that generates FILE fields for use when something is to be added to the database, and grayed out (and disabled) with data already in the database when the item in question is being edited or viewed in detail. However, I can't seem to get the text to fill the field. I'm using this:
echo '<input type="file" name="small[]" value="' . $value_from_database . '" DISABLED><br>';
Am I missing anything? If not, are there any decent workarounds?
© Stack Overflow or respective owner