What i need to do is getting the file name on file upload. I need to get the file name while uploading, write it to a cookie and read the cookie if it is set before. help please...
function NewsletterForm() {
$nameOfTheFile = ??? how to get the file name? // i need a code like $nameOfTheFile = $_FILES["file"]["tmp_name"]; on php.
return new Form($this, "NewsletterForm", new FieldSet(
// List your fields here
new FileField("ImageURL", "AddPicture"),
new EmailField("Email", "Email")....