Harro Verton wrote on Sunday 19th of June 2011:Register a "before" callback, it gives you access to the 'saved_to' and 'saved_as' fields of the file array, and allows you to alter both path and name before saving. You can also use the "after" callback, have the Upload class save it to a random filename, then access that name in your callback method, and move the file elsewhere.
Upload::process(array( 'prefix'=> Session::get('user_id').'_', )); Upload::get_files(); if (Upload::is_valid()) { Upload::save(); }
It looks like you're new here. If you want to get involved, click one of these buttons!