Adding php code to renaming file while/ after uploading -
I am the originator of php and learn my methods around it. I know the job but nothing is working for me, so many mistakes are done. If someone does help, then the image is part of the code of the uploading function, I need to add the function so that the name of the file is hyphen (- ), After changing the empty space [/]
after issuing the image file (if isset ($ input ['pic'])) (if (isset ($ input ['img_url' ]) & Amp; $ input ['img_url'] = '') {input ['pic_url'] = ImageHandler :: uploadImage ($ input ['img_url'], 'picture', helper :: slugify ($ input [' Title ']),' url ' ); $ Input ['pic_url']) = ImageHandler :: uploadImage (input :: file ('pic_url'), 'image'); $ input [' Pic '] = 1;}
thanks
eb
Comments
Post a Comment