title: How to save a file path at database?
body: <p>i'm doing a music upload to my application, using the uploadify plugin, the upload are working, but, when i'll save the path reference (where the music are saved on my project), i'm getting null value, anyone knows how can I do this?</p>
  
  <p><strong>Upload Method at MusicController</strong></p>
  
  <pre><code>public ActionResult Upload()
  {
      var file = Request.Files["Filedata"];
      string savePath = Server.MapPath(@"~\mp3\" + file.FileName);
      file.SaveAs(savePath);
      return Content(Url.Content(@"~\mp3\" + file.FileName));
  }
  </code></pre>
  
  <p><strong>Create Method at MusicController</strong></p>
  
  <pre><code>  public ActionResult Create(Musica musica)
          {
              MembershipUser user = Membership.GetUser();
              int userId = Int32.Parse(Membership.GetUser().ProviderUserKey.ToString());
              string userName = user.UserName;
  
              musica.UserId = userId;
              musica.NomeArtista = userName;
  
              if (musica.isFree)
              {
  
                  musica.Preco = 0;
              }
  
              //Here I try to take the path value
              musica.path = Upload().ToString();
  
              if (ModelState.IsValid)
              {
                  db.Musicas.Add(musica);
                  db.SaveChanges();
                  return RedirectToAction("Index");
              }
  
              ViewBag.GeneroId = new SelectList(db.Generos, "GeneroId", "Nome", musica.GeneroId);
              return View(musica);
          }
  </code></pre>
  
  <p>On this case, I only want to save in my database, this information:</p>
  
  <pre><code>~\mp3\MusicExample.mp3
  </code></pre>
  
  <p>Someone can help me?</p>