An Image/File attribute with the “HTML Input” does not store the uploaded files.
I put this attribute on a composer form, and uploaded a file, and published. It seems the file is not stored.
When I saved a page as draft, the uploaded file is stored. It might be that the logic for publish and that of draft is different.