File Upload Works but $_FILES Is Empty After Page Reload
Hello,
I am implementing a file upload feature in a forum reply form.
Issue details:
-
The file uploads successfully
-
After page reload, the
$_FILESarray becomes empty
What could be the reason?
-
Missing
enctype="multipart/form-data"? -
Should I use AJAX instead of normal form submit?
-
Could this be a session or token-related issue?