Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRohin Kansal
Courses Plus Student 642 PointsUpload MP3 files using php and storing in database
Hi, I tried to upload mp3 files using PHP. On clicking upload, an error occurs, that is undefined index: file from the following lines:
$fileName = $_FILES["file"]["name"]; $fileTmpLoc = $_FILES["file"]["tmp_name"]; $fileType = $_FILES["file"]["type"]; $fileSize = $_FILES["file"]["size"]; $fileErrorMsg = $_FILES["file"]["error"];
Please help me, its urgent. I am creating my website
Andrew Shook
31,709 PointsAndrew Shook
31,709 Pointscan you post all of the code from this file. It'll help to figure out the problme if we have more context.