Piwigo / Piwigo-Android

Piwigo Native Android App
GNU General Public License v3.0
140 stars 43 forks source link

Upload fails on Android but not on webapp #240

Closed Chouchen closed 4 years ago

Chouchen commented 4 years ago

I'm trying to upload a photo in any folder of my piwigo instance.

It should upload to the given folder but instead I have an error : Failed to move uploaded file

I tried

I didn't try to to reproduce it with https://www.piwigo.org/demo/

I have this notification : Screenshot_20200120-162512

The same picture can be uploaded in the same folder in my piwigo instance via firefox without an error.

I'm using the last version of the Android client (1.0.2) and the last version of piwigo (2.10.1)

My guess is : I installed piwigo wrongly and there's a file permission problem but I can't find it.

ramack commented 4 years ago

Thanks for the report! Clearly this kind of issue is useless to try with piwigo.com/demo (as also with guest permissions)

The message is a bit misleading, but for me it looks like a duplicate of #217 and therefore "just" a file too big for your server configuration to be transmitted in one chunk. Can you check your setting upload_max_filesize in php.ini on the server (if it is under your control)? And/ or try with a smaller file?

Increasing upload_max_filesize is probably a workaround, the alternative is to wait for the next release, there it will be fixed.

Chouchen commented 4 years ago

It was using an old PHP version and I didn't see it… My server also has a "nextcloud" instance on which I could upload big files so I didn't check that :)

Sorry for the duplicate and thanks for your guidance!

ramack commented 4 years ago

No problem at all and thanks for reporting back.

ke0pci commented 4 years ago

I am seeing the same. There is no php.ini for name-based hosting setups. Every generation of phones will have cameras that take pictures with larger files sizes...

Would adding ini_set( 'upload_max_size' , '20M' ); to functions_session.inc.php be sufficient (similar to what you would add to a wordpress install)?

ramack commented 4 years ago

I didn't try but this could do the trick, yes.

junsve commented 3 years ago

Hi. I have the same/similair problem. I could always upload from web. I changed upload limits (post and file) to 1024M I can (now) upload from Android 10 (OnePlus 5T) I can't upload from Android 7.0 (Samsung Tab S2 T815), even one image. Is there a log somewhere in the server or app I could look at?

ramack commented 3 years ago

On the server there is the log from the webserver normally, for the app it is harder if you don't have experience with Android development. I do not see which part could be dependent on the Android version, but the chunked upload should normally fix it in the next release.

junsve commented 3 years ago

Ok, I share that view. So when can we expect the next release?