0

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

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by bucktaylor
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.