Código PHP:
Ver original
$query = "INSERT INTO upfile (taula, nomfile, ct_descripcio, cs_descripcio, clau_id, amplada, altura) VALUES('partseccio', $fileName, '".$_POST["peuct"]."', '".$_POST["peucs"]."', $ID_reg, $amplada, $altura)"; echo $query2; echo "Imatge subida correctamente"; }else{ echo "Error subiendo a BD"; } }
Upload es el nombre del boton de subir imagen.
Warning: fopen(/tmp/phpS1wm4m) [function.fopen]: failed to open stream: No such file or directory in /var/www/html/workspace/gypco/root/admin/seccions/upload.php on line 236
Warning: filesize() [function.filesize]: stat failed for /tmp/phpS1wm4m in /var/www/html/workspace/gypco/root/admin/seccions/upload.php on line 237
Warning: fread(): supplied argument is not a valid stream resource in /var/www/html/workspace/gypco/root/admin/seccions/upload.php on line 237
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/workspace/gypco/root/admin/seccions/upload.php on line 239
Error, query failed
Lo que no entiendo porqué sale esa ruta tmp/. La crea él?
Thanks!