Replace file name of uploaded file with unique name

Need to revise following file at line 58:

$path_parts = pathinfo($uploadedFile[‘name’]);
$ext = strtolower($path_parts[‘extension’]);
$uploadedFile[‘name’] = uniqid() . ‘.’ . $ext;
//echo var_dump($uploadedFile[‘name’]);


4 thoughts on “Replace file name of uploaded file with unique name

  1. Pingback: league of legends cosplay

  2. Arturo Serfass

    Its like you read my mind! You appear to understand so much approximately this, such
    as you wrote the e book in it or something. I believe that you simply can do with a few percent to
    pressure the message home a bit, but instead of that,
    this is wonderful blog. A fantastic read. I’ll definitely be back.

  3. steven

    Hello to every single one, it’s genuinely a good for me to pay a visit this web page, it includes precious Information.

Comments are closed.