hotmert Posted March 2, 2012 Share Posted March 2, 2012 I'm trying to work out if in my form my image field, which currently asks the user to upload from their hard drive, can show the contents of a server folder to select an image or upload a new one. Can this be done?? Quote Link to comment https://forums.phpfreaks.com/topic/258120-choose-file-from-server-directory/ Share on other sites More sharing options...
requinix Posted March 2, 2012 Share Posted March 2, 2012 No. You'll have to make something which shows them the files on the server, and acts based on the choice made there rather than on an uploaded file. Quote Link to comment https://forums.phpfreaks.com/topic/258120-choose-file-from-server-directory/#findComment-1323162 Share on other sites More sharing options...
batwimp Posted March 2, 2012 Share Posted March 2, 2012 If I understand what you are trying to do, I would suggest trying this function: http://php.net/manual/en/function.readdir.php Quote Link to comment https://forums.phpfreaks.com/topic/258120-choose-file-from-server-directory/#findComment-1323177 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.