Hi,
I need you help to understand why I receive empy sting from this:
$("<form 'enctype=multipart/form-data' method='post' action='upload.php'><input type='file' name='file' value='"+arg1+"'/><input type='text' name='a' value='"+arg1+"'/></form>").appendTo("body").submit();
arg1 is the name of the file.
in update.php if I use $_POST['a'] it returns the correct name. Instead if I use $_FILES["file"] ['name'] it returns an empty string.
Controlling my console:
file:
a: myFile
Thanks in advance.
Tegatti