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?? 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. 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 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
Archived
This topic is now archived and is closed to further replies.