This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
phplee
I have a form which has a file upload feature. i want to save the files to System\Models\File. For some reason it adds an entry in the system files table but most of the fields are empty. disk_name, file_name, type etc. what am i missing.
$file = new System\Models\File;
$file->data = Input::file('proof_of_id');
$file->is_public = true;
$file->save();
$order->files()->add($file);
thanks
1-1 of 1