how to upload fb2 books

Started by nikk, 10 September 2020, 11:00:18

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

nikk

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.

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

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"
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

nikk

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!