diff --git a/.DS_Store b/.DS_Store index b4acdff..def48f6 100755 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 600b07e..3396f0b 100755 --- a/.gitignore +++ b/.gitignore @@ -438,4 +438,4 @@ php/composer.lock php/.idea/ ##### Images : -php/public/uploads/ +###php/public/uploads/ diff --git a/php/.DS_Store b/php/.DS_Store index ccd016e..4b0e7ab 100755 Binary files a/php/.DS_Store and b/php/.DS_Store differ diff --git a/php/public/uploads/10113Servier_41674_63784062656686039929088965.jpeg b/php/public/uploads/10113Servier_41674_63784062656686039929088965.jpeg new file mode 100644 index 0000000..692714c Binary files /dev/null and b/php/public/uploads/10113Servier_41674_63784062656686039929088965.jpeg differ diff --git a/php/public/uploads/10128imgbin-cgi-group-business-process-information b/php/public/uploads/10128imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/10128imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/10333pexels-christian-heitz-842711.jpg b/php/public/uploads/10333pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/10333pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/10514Servier_41674_63784062656686039929088965.jpeg b/php/public/uploads/10514Servier_41674_63784062656686039929088965.jpeg new file mode 100644 index 0000000..692714c Binary files /dev/null and b/php/public/uploads/10514Servier_41674_63784062656686039929088965.jpeg differ diff --git a/php/public/uploads/10570servierlogo.png b/php/public/uploads/10570servierlogo.png new file mode 100644 index 0000000..43001a7 Binary files /dev/null and b/php/public/uploads/10570servierlogo.png differ diff --git a/php/public/uploads/10918Servier_41674_63784062656686039929088965.jpeg b/php/public/uploads/10918Servier_41674_63784062656686039929088965.jpeg new file mode 100644 index 0000000..692714c Binary files /dev/null and b/php/public/uploads/10918Servier_41674_63784062656686039929088965.jpeg differ diff --git a/php/public/uploads/11518imgbin-cgi-group-business-process-information b/php/public/uploads/11518imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/11518imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/11530imgatos.jpeg b/php/public/uploads/11530imgatos.jpeg new file mode 100644 index 0000000..1dee3d5 Binary files /dev/null and b/php/public/uploads/11530imgatos.jpeg differ diff --git a/php/public/uploads/12081interum.png b/php/public/uploads/12081interum.png new file mode 100644 index 0000000..c437878 Binary files /dev/null and b/php/public/uploads/12081interum.png differ diff --git a/php/public/uploads/12531logotere.png b/php/public/uploads/12531logotere.png new file mode 100644 index 0000000..a02d831 Binary files /dev/null and b/php/public/uploads/12531logotere.png differ diff --git a/php/public/uploads/12878imgbin-cgi-group-business-process-information b/php/public/uploads/12878imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/12878imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/13075logoenedis.png b/php/public/uploads/13075logoenedis.png new file mode 100644 index 0000000..3862d84 Binary files /dev/null and b/php/public/uploads/13075logoenedis.png differ diff --git a/php/public/uploads/13181Servier_41674_63784062656686039929088965.jpeg b/php/public/uploads/13181Servier_41674_63784062656686039929088965.jpeg new file mode 100644 index 0000000..692714c Binary files /dev/null and b/php/public/uploads/13181Servier_41674_63784062656686039929088965.jpeg differ diff --git a/php/public/uploads/13954148705384_3066830383419583_836309298646490890 b/php/public/uploads/13954148705384_3066830383419583_836309298646490890 new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/13954148705384_3066830383419583_836309298646490890 differ diff --git a/php/public/uploads/14033critlogo.png b/php/public/uploads/14033critlogo.png new file mode 100644 index 0000000..64edc24 Binary files /dev/null and b/php/public/uploads/14033critlogo.png differ diff --git a/php/public/uploads/14050logocoexya.png b/php/public/uploads/14050logocoexya.png new file mode 100644 index 0000000..6e92d92 Binary files /dev/null and b/php/public/uploads/14050logocoexya.png differ diff --git a/php/public/uploads/14188pexels-christian-heitz-842711.jpg b/php/public/uploads/14188pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/14188pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/14190crit.jpeg b/php/public/uploads/14190crit.jpeg new file mode 100644 index 0000000..4e8b529 Binary files /dev/null and b/php/public/uploads/14190crit.jpeg differ diff --git a/php/public/uploads/14380servierlogo.png b/php/public/uploads/14380servierlogo.png new file mode 100644 index 0000000..43001a7 Binary files /dev/null and b/php/public/uploads/14380servierlogo.png differ diff --git a/php/public/uploads/14466pexels-christian-heitz-842711.jpg b/php/public/uploads/14466pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/14466pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/14512atoslogo.png b/php/public/uploads/14512atoslogo.png new file mode 100644 index 0000000..b386da6 Binary files /dev/null and b/php/public/uploads/14512atoslogo.png differ diff --git a/php/public/uploads/14652148705384_3066830383419583_836309298646490890 b/php/public/uploads/14652148705384_3066830383419583_836309298646490890 new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/14652148705384_3066830383419583_836309298646490890 differ diff --git a/php/public/uploads/148705384_3066830383419583_8363092986464908904_n.jpg b/php/public/uploads/148705384_3066830383419583_8363092986464908904_n.jpg new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/148705384_3066830383419583_8363092986464908904_n.jpg differ diff --git a/php/public/uploads/14912interumlogo.png b/php/public/uploads/14912interumlogo.png new file mode 100644 index 0000000..342a0c0 Binary files /dev/null and b/php/public/uploads/14912interumlogo.png differ diff --git a/php/public/uploads/15688imgbin-cgi-group-business-process-information b/php/public/uploads/15688imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/15688imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/15723imgbin-cgi-group-business-process-information b/php/public/uploads/15723imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/15723imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/15933GIB-e0c1f0d7.png b/php/public/uploads/15933GIB-e0c1f0d7.png new file mode 100644 index 0000000..2bc507a Binary files /dev/null and b/php/public/uploads/15933GIB-e0c1f0d7.png differ diff --git a/php/public/uploads/16282148705384_3066830383419583_836309298646490890 b/php/public/uploads/16282148705384_3066830383419583_836309298646490890 new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/16282148705384_3066830383419583_836309298646490890 differ diff --git a/php/public/uploads/16376pexels-christian-heitz-842711.jpg b/php/public/uploads/16376pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/16376pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/17937TerresdelOuest_76997_636936145949705736.jpeg b/php/public/uploads/17937TerresdelOuest_76997_636936145949705736.jpeg new file mode 100644 index 0000000..2906487 Binary files /dev/null and b/php/public/uploads/17937TerresdelOuest_76997_636936145949705736.jpeg differ diff --git a/php/public/uploads/17954pexels-christian-heitz-842711.jpg b/php/public/uploads/17954pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/17954pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/18010servierlogo.png b/php/public/uploads/18010servierlogo.png new file mode 100644 index 0000000..43001a7 Binary files /dev/null and b/php/public/uploads/18010servierlogo.png differ diff --git a/php/public/uploads/18159148705384_3066830383419583_836309298646490890 b/php/public/uploads/18159148705384_3066830383419583_836309298646490890 new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/18159148705384_3066830383419583_836309298646490890 differ diff --git a/php/public/uploads/18308edf.jpeg b/php/public/uploads/18308edf.jpeg new file mode 100644 index 0000000..4a08501 Binary files /dev/null and b/php/public/uploads/18308edf.jpeg differ diff --git a/php/public/uploads/18552servierlogo.png b/php/public/uploads/18552servierlogo.png new file mode 100644 index 0000000..43001a7 Binary files /dev/null and b/php/public/uploads/18552servierlogo.png differ diff --git a/php/public/uploads/18650imgbin-cgi-group-business-process-information b/php/public/uploads/18650imgbin-cgi-group-business-process-information new file mode 100644 index 0000000..e284619 Binary files /dev/null and b/php/public/uploads/18650imgbin-cgi-group-business-process-information differ diff --git a/php/public/uploads/18904coexya.jpeg b/php/public/uploads/18904coexya.jpeg new file mode 100644 index 0000000..c2c9f07 Binary files /dev/null and b/php/public/uploads/18904coexya.jpeg differ diff --git a/php/public/uploads/19172edflogo.png b/php/public/uploads/19172edflogo.png new file mode 100644 index 0000000..1bafbc3 Binary files /dev/null and b/php/public/uploads/19172edflogo.png differ diff --git a/php/public/uploads/19450pexels-christian-heitz-842711.jpg b/php/public/uploads/19450pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/19450pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/19795Enedis_14965_63815092594784503034500971.jpeg b/php/public/uploads/19795Enedis_14965_63815092594784503034500971.jpeg new file mode 100644 index 0000000..ab2d75f Binary files /dev/null and b/php/public/uploads/19795Enedis_14965_63815092594784503034500971.jpeg differ diff --git a/php/public/uploads/19839pexels-christian-heitz-842711.jpg b/php/public/uploads/19839pexels-christian-heitz-842711.jpg new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/19839pexels-christian-heitz-842711.jpg differ diff --git a/php/public/uploads/19864Image-blob.png b/php/public/uploads/19864Image-blob.png new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/19864Image-blob.png differ diff --git a/php/public/uploads/19909Image-blob.png b/php/public/uploads/19909Image-blob.png new file mode 100644 index 0000000..637af31 Binary files /dev/null and b/php/public/uploads/19909Image-blob.png differ diff --git a/php/public/uploads/Array b/php/public/uploads/Array new file mode 100644 index 0000000..273aea0 Binary files /dev/null and b/php/public/uploads/Array differ diff --git a/php/src/gateway/ImageManager.php b/php/src/gateway/ImageManager.php index 6a05442..528b18c 100644 --- a/php/src/gateway/ImageManager.php +++ b/php/src/gateway/ImageManager.php @@ -23,8 +23,15 @@ class ImageManager try { $return=[]; - $name = substr($_FILES[$filename]["name"], 0, 45); - $name = self::getId().$name; + $name = $_FILES[$filename]["name"]; + $path = "public/uploads/".$name; + while(file_exists($path)) + { + $name = substr($_FILES[$filename]["name"], 0, 45); + $name = self::getId().$name; + $path = "public/uploads/".$name; + } + move_uploaded_file($_FILES[$filename]['tmp_name'], "public/uploads/$name"); $return[]=true;