Cannot download or upload PDFs

Posted by evan 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Cannot download or upload PDFs
April 17, 2015 03:56PM
I just setup the latest image of PirateBox for RPI. Everything is great except that I primarily need it to serve PDFs and it doesn't seem to be doing this.

From an Adroid tablet, when I attempt to download a PDF (previously scp'd into the /opt/piratebox/www/Shared directory), I get redirected to the Piratebox front page. If I attempt to upload a pdf and browse to the file, the file does not appear and the Browse button becomes greyed out - it reappears usable if I refresh.

I can upload pics no problem. But I do seem to have the same issue with PirateBox on a TP MR3040. Odd, it seems like a lot of people use it for this.
Re: Cannot download or upload PDFs
April 19, 2015 03:21PM
Hi,
this is usually a permission issue, because I assume you scp'ed it via root.

you can do two things to fix that:

1. Rerun the first init-script
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2

2. or change the permissions with that command:
chown -R -v  nobody:nogroup /opt/piratebox/share/Shared

After that, the download should work.

regards Matthias


This is only my signature.