I have a Perl script to manage my library of digital books (pdf & epub). When I use Perl to copy an epub file from one directory to a local Apache web site, it seems to copy as a directory, not a file, according to 'ls'. I know epubs are zipped HTML and the mime type is 'application/epub+zip'.
After copying, I cannot click to download it. I've looked at Extended Attributes and played with xattr but no joy. Very frustrating. Any ideas please?