Hello Schumiholic, sorry for delay. Somehow $form->id was null when uploading file or image, we will fix it our latter release. If possible just make it’s simple, forget about form id condition and make sure File Upload Location is set as “Fluent Forms Default”. If it’s mandatory to check ($form_id == 7) you can create a support ticket here to get fixed version.
add_filter('fluentform/default_upload_path', function($path, $form) {
return wp_upload_dir()['basedir'] . '/competitions';
}, 10, 2);