Hi all -
Here's a specific question: You're developing an admin page for articles to be posted by content editors. Part of the form for this article includes a file upload for images associated with the article. Simple enough. When submitted, the form checks all input for errors, and if there are errors, returns the form with the fields displaying the data that was entered, errors highlighted, so that the user can make fixes. All very mundane.
Now my question. When the form is submitted, the file (if one exists) is uploaded to the server's /temp directory. But if there's a problem with the form submission, how do I return the value of that uploaded file to the form again? In other words, is there a way to carry _POST data through a form to a file input so that the user does not have to re-select and re-upload the file again?
I can refer to the file stored in the /temp directory, I suppose, but I do not have control over how long it can live there before the server automatically deletes it.
Thanks,
Steve