Drupal 7, form api - file field default_value I've created a formular where the user can upload an image using a file field. In another formular the user is able to change the image he previous uploaded. 

So far I was able that the user can upload a new picture or let the field empty and the existing image remains. My question is, how do I show the user in a nice way which file he previously uploaded with the field? Setting a #default_value (@code below) does nothing for me.

//$smallimage = fid of image
$form['smallimage'] = array(
  '#type' =&gt; 'file',
  '#title' =&gt; t('Image'),
  '#default_value' =&gt; $smallimage,
  '#description' =&gt; t('Upload a file, allowed extensions: jpg, jpeg, png, gif'),
);


Has anyone a solution/workaround without switching to managed_file?

Thank you in advance

Edit:

As seen in the answers there is no direct solution for the problem. So I've changed the type back to managed_file and gave user1 and node1 the responsibility of being the reference of my files. I'm not happy with that but it works.
No, there's no way to do this. The restriction is with HTML, not Drupal. A file input simply doesn't have the capacity for a default value to be set; allowing such behaviour would introduce a security hole (imagine you pre-filled it with /~/.ssh/id_rsa, auto-submitted the form, and the user didn't have permissions set up correctly). See this post.

If you check the FAPI guide you'll see there's no #default_value available for a file field type.

You'll need to switch to a managed_file element if you need a default value for the field.