I have a form with two inputs: one string, one file.
&l
It is true that the file input value cannot be preserved. Thats just as it is implemented in all browsers. As far as i can tell it has to do with potential security risks but i never went deeper.
There is a possibility to achieve something similar though. This is what we did in our project:
This works stable now and as a nice side effect the controller was somehow easier and in my eyes also cleaner to write since we do not need multipart for these forms anymore and another controller just handling uploads.
Edit: - you might want to implement a cronjob to clear abandonned uploads!