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. 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']; 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. Link to comment https://forums.phpfreaks.com/topic/88944-file-upload-name/#findComment-455544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.