nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.58k stars 299 forks source link

Support for large files for 32bit images #1483

Open judgetom opened 2 years ago

judgetom commented 2 years ago

Description
Maximum file size which can be uploaded is 4GB.

Error log
FATAL - webdav - Sabre\DAV\Exception: Error while copying file to target location (copied bytes: -1, expected filesize: -1 )

Solution suggestion PHP should be compiled with the following additional flags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' Source: https://archlinuxarm.org/forum/viewtopic.php?t=14070&p=62441

r4lix commented 2 years ago

would be great

theCalcaholic commented 2 years ago

Which image are you using? I assume a 32bit image?

If it works on the 64bit images, I think compiling our own PHP just for the (2?) 32bit boards we're supporting might be out of scope...

judgetom commented 2 years ago

Hi,

I'm using a Raspberry pi with this OS: Linux raspberrypi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

And this is the image I'm using for Nextcloud: ownyourbits/nextcloudpi-armhf:latest

If you have any other question, please get back to me.

Thanks in advance!

theCalcaholic commented 2 years ago

Ah so you're using the docker image. Thanks for providing the information. I'll keep this issue open as a suggestion but I don't think, I'll have time for it in the near future

judgetom commented 2 years ago

No problem, I could upload the files directly to the Raspberry and synchronized the folder, so it works as workaround. Thanks for the program, respect for it ;)