Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Upload getting filename doesn't exist
  • Hey Guys,

    Anyone can help me here, I have this config.

    [code]

    // Custom configuration for this upload
    $config = array(
       'path' => DOCROOT.'/assets/img/uploads/hotellogo',
       'ext_whitelist' => array('img', 'jpg', 'jpeg', 'gif', 'png'),
       'randomize' => true,
    );
    [/code]

    but when i use var_dump to see what the random generatd filename is, this is what i get...

    [code]

    Array
    (
    [0] => Array
    (
    [field] => hotelLogo
    [saved_as] =>
    [name] => gv-hotel.jpg
    [type] => image/jpeg
    [file] => /tmp/phpicBHq7
    [error] =>
    [size] => 23315
    [extension] => jpg
    [basename] => gv-hotel
    [mimetype] => image/jpeg
    [errors] => Array
    (
    )

    )

    )

    [/code]
  • Which Fuel version? And is the upload package up to date (see https://github.com/fuel/fuel/blob/1.7/master/composer.json#L138)?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion