title: Uploading video file from azure blob storage to azure media services
body: <p>I have a web api where i upload .mp4 files to my blob storage account on Azure which is connected to my media services account. I want to copy the video from my storage account and upload it to my media services account. What i've tried so far is to get the filepath that points to my storage account file and do it like this:</p>
  
  <pre><code>  public void UploadToMediaServices(Uri storageAddress)
          {
              var filePath = storageAddress.ToString();
              var context = new CloudMediaContext("Name", "Key");
              var uploadAsset = context.Assets.Create(Path.GetFileNameWithoutExtension(filePath), AssetCreationOptions.None);
              var assetFile = uploadAsset.AssetFiles.Create(Path.GetFileName(filePath));
              assetFile.Upload(filePath);
          }
  </code></pre>
  
  <p>This is what azure websites recomended in their code snippet. The only thing is that i assume they take form local disk. 
  When i do this it uploads a name to the media service but nothing else is available and i can't publish the video nor see the size of it.
  Does anyone know what to do in this situation?
  Thanks.</p>