For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
$filepath = str_replace(COM_FABRIK_LIVESITE, COM_FABRIK_BASE, $d->file);
$filesize = filesize($filepath);
Are you saying you want it to look like that? I'm pretty sure we don't append the file size at the moment.
If so, you could do that on a per filetype basis by overriding one of the layouts from plugins/fabrik_element/fileupload/layouts (see wiki for where to put layout files to override the built in ones). Unfortunately we don't pass the actual file path or size in to the layout, but you've got the URL to it in $d->file, like ...
http://localhost/joomla/images/stories/main_test/OHMI1.png
... so you could get the path by doing something like ...
Code:$filepath = str_replace(COM_FABRIK_LIVESITE, COM_FABRIK_BASE, $d->file); $filesize = filesize($filepath);
... and use $filesize in the ouput.
-- hugh