ciao a tutti,
io ho trovato questo codice per l'upload:
Codice PHP:
<%@ Page language="c#"%>
<%
Response.Write("Upload result:
"); //At least one symbol should be sent to response!!!
string FolderToSave = Server.MapPath("") + "\\UploadedFiles\\";
HttpPostedFile myFile = Request.Files(0)
if(myFile != null && myFile.FileName !="")
{
myFile.SaveAs(FolderToSave + System.IO.Path.GetFileName(myFile.FileName));
Response.Write("File " + myFile.FileName + " succesfully saved.
");
}
else
Response.Write("No files sent. Script is OK!"); //Say to Flash that script exists and can receive files
%>
in teoria nell'altra pagina mi basterebbe fare una form che invii il file alla pagina, il problema è che non so che nome dare al campo file nel form
io ho fatto questo, ma il sistema non va, mi segna in rosso
HttpPostedFile myFile = Request.Files(0)
e da errore
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1002: ; expected
Codice PHP:
<form enctype="multipart/form-data" action="uploadfiles.aspx" method="POST">
Send this file: <input name="Files" type="file" />
<input type="submit" value="Send File" />
</form>
avete delle idee?