jonniejoejonson Posted February 1, 2008 Share Posted February 1, 2008 I am trying to store the name of an uploaded file in a database.. i thought $filename= $_FILES['name']; and then tried to store $filename in database but this does not work, anyone know how to get the name of the file being uploaded... regard J. Quote Link to comment https://forums.phpfreaks.com/topic/88944-file-upload-name/ Share on other sites More sharing options...
budimir Posted February 1, 2008 Share Posted February 1, 2008 I think, you are looking for this $oriname = $_FILES['imagefile']['name']; Quote Link to comment https://forums.phpfreaks.com/topic/88944-file-upload-name/#findComment-455543 Share on other sites More sharing options...
jonniejoejonson Posted February 1, 2008 Author Share Posted February 1, 2008 $_FILES['Filedata']['name'] I hate that as soon as you post it you get your answer! thanks for your response though budimir. Quote Link to comment https://forums.phpfreaks.com/topic/88944-file-upload-name/#findComment-455544 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.