amites Posted February 12, 2009 Share Posted February 12, 2009 Hello, I'm having trouble getting a form to submit multiple files, they are named differently and I'm rather certain I'm missing an obvious setting or something. Been looking at it so long I'm not seeing it. any help is greatly appreciated <form action="http://localhost/Heritage Web Design/Erik Ohanessian/draft/admin/media/upload.html" method="post" enctype="multipart/form-data"> <div><span>Recording Name:</span> <input name="name" type="text" value="" /></div><br /> <div><span>Streaming MP3 File:</span> <input name="mp3" type="file" /></div> <div><span>Public sample?</span> <input name="sample" type="checkbox" value="1" ></div><br /> <div><span>High Quality (Downloadable) MP3 File:</span> <input name="mp3_hq" type="file" /></div><br /> <div><span>Workshop Document:</span> <input name="document" type="file" /></div><br /> <div><span>Recording active and available?</span> <select name="status"> <option value="1" selected="selected">Yes</option> <option value="0" >No</option> </select> <div align="center"><input name="Submit" type="submit" value="Submit"></div> </form> Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 12, 2009 Share Posted February 12, 2009 Each individual uploaded file is subject to the upload_max_filesize setting. The total of all the form data submitted is subject to the post_max_size setting. What are the sizes and the total of the uploaded files and what does a phpinfo() statement show for upload_max_filesize and post_max_size? P.S. What are the symptoms? How do you know it is not working? What is your form processing code and does it have any error checking logic in it? Quote Link to comment Share on other sites More sharing options...
amites Posted February 12, 2009 Author Share Posted February 12, 2009 I do a print_r($_POST); and get settings back for the text input and other standard form fields, file fields don't show anything, tried this on a couple different computers and multiple browsers. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 12, 2009 Share Posted February 12, 2009 print_r($_FILES); would show the uploaded file information if it is present. Quote Link to comment 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.