I want to upload a video file to a local server (apache over XAMPP) by using BackgrountTrasfer. I have a test folder (xampp/htdocs/test/) but get an 404 Error with "localhost/test"
I get no errors if I use just localhost but I can also find no file on the computer. Do I need special configuration of the apache or is my code bad?
private async void UploadFiles()
{
Uri uri = new Uri("http://localhost:8080/test/");
StorageFile videofile = await Windows.Storage.KnownFolders.VideosLibrary.GetFileAsync("vid.mp4");
BackgroundUploader uploader = new BackgroundUploader();
uploader.SetRequestHeader(FileName + ".mp4", videofile.Name);
UploadOperation upload = uploader.CreateUpload(uri, videofile);
await upload.StartAsync();
}
I see that I need a script on sever side. There is one if you download BackgroundTrasfer sample from MSDN but it is a aspx file. I need php. Any idea where to get one?