socalnate Posted October 28, 2007 Share Posted October 28, 2007 How do you fetch uploaded files from session variables back into form input where input type="file" ? I understand how to do it with text like so: value="<?php echo $_SESSION['credit6_sess']; ?> How do you do this when type="file" ? I don't want to have to have people upload a file twice if a script encounters a problem with the text but not with the file. Press back in the browser and walla their uploaded file is gone. Make people angry and not want to upload again. Cheers! (FYI I'm NOT posting it via PHP_SELF deal but to another file upload.php) Quote Link to comment https://forums.phpfreaks.com/topic/75072-fetch-uploaded-files-back-to-html-forms-via-php-session-variables/ Share on other sites More sharing options...
LemonInflux Posted October 28, 2007 Share Posted October 28, 2007 use the path to the file? Then it'd be like text. And if you wanted to use that file, you'd just have to add the appropriate html tag around it. Quote Link to comment https://forums.phpfreaks.com/topic/75072-fetch-uploaded-files-back-to-html-forms-via-php-session-variables/#findComment-379681 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.