Amlioration onglet document sur produits

This commit is contained in:
Laurent Destailleur 2005-08-25 00:04:51 +00:00
parent 9a661951e7
commit 1fd11d1bf2

View File

@ -53,6 +53,11 @@ if ($productid > 0)
*/
if ( $_POST["sendit"] && $conf->upload)
{
/*
* Creation répertoire si n'existe pas
*/
if (! is_dir($upload_dir)) create_exdir($upload_dir);
if (is_dir($upload_dir))
{
if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name']))