filepizza icon indicating copy to clipboard operation
filepizza copied to clipboard

download works on localhost but not on private ip

Open paniabhisek opened this issue 11 months ago • 2 comments

I have cloned and hosted it on my ubuntu machine. I am able to download the file using localhost but not using private ip. A new window opens with nothing in it. But when I check the console, it says "all files downloaded."

Browser: Firefox 134.0.2 pnpm: 10.0.0

I do not work on webapps. If I am missing something, can you please add it to the FAQ section. That will help other people who selfhost filepizza.

paniabhisek avatar Jan 26 '25 10:01 paniabhisek

I've encountered the same issue; I can transfer files using localhost, but when I use another IP address, it doesn't work. A blank page pops up, indicating that the download is complete, but in fact, no file is downloaded.

CouldWe avatar Mar 29 '25 05:03 CouldWe

@paniabhisek @CouldWe You need to allow origins from which the filepizza server is invoked. You can specify that by uncommenting the API_ORIGINS env variable in the docker compose file and specifying your local ip in that list. You can also try 'API_ORIGINS=*' which will accept any origin, although that is not recommended.

This feature is implemented on this fork:

https://github.com/TeXlyre/filepizza

fabawi avatar Apr 19 '25 08:04 fabawi