Get previous value of file in form after validation failed
I am trying to get old values with the old method, it's working for me but it's not working for input[type=file]
I am using the following code to get the old file value
@salamaslam.official if you could specify the file then you could hide the file input element and steal any file you liked from the user's computer. You need to save the file on that step. You can pass forward a reference to where you have put the file, and if the user presses back, remind them of the filename they uploaded, with an option to upload something different