I have an edit page where the image would already be present after the creation of a "content" - before editing. The problem is that when i try to pass the select "name of the file passed using foreach, fetched from the database" file without uploading anything to the controller the value of the image disappears.
Needed solution: is there a way to automatically choose an image from a folder when the page loads. Simplified - i need an AJAX or JS to choose a file in the form without clicking the choose file when the page is loaded.