I am having a problem with uploading an mp3 file on my site. It works fine in firefox but not in IE and I cant figure out why. Here is the code i have in the tracks.php file:

if(Footprint::$Errors->Count() == 0 && $inpAction == "Upload") {
		//create new track
		Footprint::$DB->SQLCommand = Footprint::$SQL->GetCommand("create-new-track", Footprint::FilePath("account/tracks.sql.xml"));
		Footprint::$DB->SQLKey("%fk_user_id%", Footprint::$Request->Session("user_id"));
		Footprint::$DB->SQLKey("%fk_category_id%", $inpTrackCategoryID);
		Footprint::$DB->SQLKey("%label%", $inpLabel);
		Footprint::$DB->ExecuteNonQuery();
		
		//get new track id
		$MD5TrackID = md5(Footprint::$DB->GetLastInsertID());
		
		//prepare destination path
		$DestinationDirectory = Footprint::FilePath("_MEDIA/tracks/");
		$FullSavePath = $DestinationDirectory . $MD5TrackID . "mp3";
		
		//save file
		Footprint::$Request->File("file")->SaveAs($FullSavePath);
		
		//close database
		Footprint::$DB->Close();
		
		//redirect back here
		Footprint::$Response->RedirectURL = Footprint::URL("account/tracks.php");
		Footprint::$Response->Finalize();
	}

Here is the code in the .xml file:

<command id="create-new-track">
			INSERT INTO
				track
			SET
				fk_user_id = '%fk_user_id%',
				label = '%label%',
				fk_category_id = '%fk_category_id%'
			;
		</command>

I would be great full for any help, thank you

Anybody have an idea about this one?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.