$file_info = \File::file_info($file['tmp_name']); list($file_myme, $file_ext) = explode('/', $file_info['mimetype']); \Image::load($file['tmp_name'], false, $file_ext) ->resize(600, 600, true) ->watermark(DOCROOT.'assets'.DS.'img'.DS.'watermark.jpg', 'bottom right') ->save($new_path, 0755) ->resize(120, 120, true) ->save($new_path_thumb, 0755);
I still believe it's not the task of the Upload class to deal with this, I might want files without extensions in my application, and the feature you're proposing will not allow that anymore.
It looks like you're new here. If you want to get involved, click one of these buttons!