I’m currently working on a feature in my web app where I can upload a file. But everytime I upload something this errors appears:
`
array(1) { [“file”]=> array(5) { [“name”]=> string(39) “Screenshot from 2020-11-09 18-53-37.png” [“type”]=> string(9) “image/png” [“tmp_name”]=> string(14) “/tmp/phpAdl88R” [“error”]=> int(0) [“size”]=> int(452262) } } Your document was uploaded successfully
Notice: Trying to get property ‘childNodes’ of non-object in /var/www/html/fileUpload.php on line 26
Warning: Invalid argument supplied for foreach() in /var/www/html/fileUpload.php on line 28
Warning: DOMDocument::save(../super_user/overview.html): failed to open stream: No such file or directory in /var/www/html/fileUpload.php on line 46
`
Also the file is successfully uploaded but when I check in the folder it is automatically locked. I’m using Linux OS