tracy Posted December 12, 2006 Share Posted December 12, 2006 Is there a way to upload files giving the browser the option of using the browse button to select a specific file from the computer? If so, a tutorial or some brief instructions would be great.I am using a MySQL database and will be inserting the photos (jpeg) into it...for recall and display later (thumbnailed)...I feel I have a grasp on the insert and display portion, just not the browse button feature...thanks. Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/ Share on other sites More sharing options...
trq Posted December 12, 2006 Share Posted December 12, 2006 Have you tried searching google for [i]php file upload tutorials[/i]? I got 1,330,000 hits. Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/#findComment-139899 Share on other sites More sharing options...
Psycho Posted December 12, 2006 Share Posted December 12, 2006 You just use an input field with type="file"However, you may want to consider only saving the location & name of the file in the database. Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/#findComment-139901 Share on other sites More sharing options...
tracy Posted December 12, 2006 Author Share Posted December 12, 2006 Yes, but the several tutorials that I tried had no info on the browse thing...I was hoping for a few other keywords or a specific tutorial that someone knew worked...thanks. Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/#findComment-139902 Share on other sites More sharing options...
tracy Posted December 12, 2006 Author Share Posted December 12, 2006 and this will automatically bring up the browse button, right? thanks.[quote author=mjdamato link=topic=118359.msg483565#msg483565 date=1165955540]You just use an input field with type="file"However, you may want to consider only saving the location & name of the file in the database.[/quote] Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/#findComment-139904 Share on other sites More sharing options...
roopurt18 Posted December 12, 2006 Share Posted December 12, 2006 Not to be mean, but it'd take about as long to create a form with a type="file" input and test it yourself as it did for you to ask if it's what you wanted.;^] Link to comment https://forums.phpfreaks.com/topic/30401-uploading-photo-files-using-browse-button/#findComment-139905 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.