Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: nikk on 10 September 2020, 11:00:18

Title: how to upload fb2 books
Post by: nikk on 10 September 2020, 11:00:18
Good day!
I cant upload fb2 books, zip books.
I put books to image/books, but doc file i can attached, fb2 or zip i cant.
Title: Re: how to upload fb2 books
Post by: federica on 14 September 2020, 11:13:03
Hi nikk,
go to administrator/components/com_abook/helpers/files.php the modify line 25 adding  the extension you need
from:
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls"
to:
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls|fb2|zip"
Title: Re: how to upload fb2 books
Post by: nikk on 14 September 2020, 11:34:08
Quote from: federica on 14 September 2020, 11:13:03
Hi nikk,
go to administrator/components/com_abook/helpers/files.php the modify line 25 adding  the extension you need
from:
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls"
to:
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls|fb2|zip"
Thank You!