Last post Feb 08, 2021 11:28 PM by bruce (sqlwork.com)
Feb 08, 2021 06:35 PM|SangJin|LINK
I want to use opening Pdf file, and User input some of fields, and then save as this file into Specific folder in my Asp.net folder.
I try to use HttpPostedFileBase file but I cannot save this file to folder, always become null for Parameter.
<form method="post" enctype="multipart/form-data">
<embed name="file" src="~/AnnounceFile/PDF.pdf#toolbar=0&navpanes=0&scrollbar=0" style="width: 780px; height: 980px;" class="with-200" />
public ActionResult Index(HttpPostedFileBase file)
string filename = Guid.NewGuid() + Path.GetExtension(file.FileName);
string filepath = "/excelfolder/" + filename;
Feb 08, 2021 11:28 PM|bruce (sqlwork.com)|LINK
embedded content is not posted back to the server.
the user would need to save the pdf to a local file, and you would need to supply a
<input type="file" name="theFile">
in your form so they could select the saved file and upload.
there are other options, google