Re: [Tiki-users] Maximum file upload size

Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> Sat, 21 Jan 2023 17:55:13 +0100
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
Hi again.

I've managed to push the maximum file size for the file gallery from 38 MB
to 164 MB. I've set the MySQL setting "max_allowed_packet" to 1000 MB and
the PHP setting "memory_limit" from 128 MB to 512 MB. 

There must still be more settings which limit the maximum upload size. I'm
not done with all your pointers yet.

Cheers, Volker


Am Freitag, dem 06.01.2023 um 19:35 +0100 schrieb Volker Wysk:
> Hi Rick!
> 
> Thank you for your detailed instructions. I'll check them all.
> 
> So far,
> Volker
> 
> 
> Am Freitag, dem 06.01.2023 um 08:55 -0500 schrieb Rick Sapir:
> > I agree that there should be a UI message that explains why an upload 
> > failed.
> > 
> > Some things you may want to check:
> > 
> > - Use the Server check to review all the relevant settings.
> > 
> > - Review the server logs, as they may provide detailed information on 
> > the failure.
> > 
> > - Are you using a quota for the file gallery?
> > 
> > - Are you storing the files in the DB? You may need to change the field 
> > type to LONGBLOB and you may need to increase the max_allowed_packet 
> > accordingly.
> > 
> > Have you reviewed the docs, especially:
> > 
> > - https://doc.tiki.org/Server-Check
> > 
> > - https://doc.tiki.org/Upload-file-size
> > 
> > - https://doc.tiki.org/Why-File-Uploads-May-Fail
> > 
> > HTH,
> > 
> > -R
> > 
> > Rick Sapir
> > ricksapir.com
> > @ricksapir
> > 
> > Creating Content -- Managing Information
> > 
> > On 1/5/2023 9:58 AM, Volker Wysk wrote:
> > > Hi
> > > 
> > > I tried to upload an attachment, but that silently failed. No error message.
> > > 
> > > When I tried to upload to a file gallery instead, but it also silently
> > > failed. But there was a note at the bottom, saying that the maximum upload
> > > size is "about" 2 MB. That's pretty low.
> > > 
> > > I searched the Tiki (25) settings for a maximum upload file size, but with
> > > no success. Then it occured to me, that this might be a PHP limit. And yes,
> > > I found the setting "upload_max_filesize" in /etc/php/7.4/apache2/php.ini,
> > > which was 2 MB.
> > > 
> > > I changed that to a gigabyte (I use Tiki as a desktop wiki here). But then
> > > the maximum upload size was shown to be 8 MB. No more.
> > > 
> > > Then I found the post_max_size PHP-setting, and set that to 1 GB. Then the
> > > maximum upload size was shown to be 38 MB. No more. I couldn't find another
> > > PHP setting, which causes this.
> > > 
> > > Is there such a PHP or Tiki setting, which sets the limit to 38 MB?
> > > 
> > > And, I think a failed upload, caused by an exceeded maximum file size,
> > > should result in a proper error message.
> > > 
> > > So far,
> > > Volker
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > TikiWiki-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
> > 
> > 
> > _______________________________________________
> > TikiWiki-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
> 
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users

_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmPMGPEACgkQ+K4ydFOs
HoW6GhAAsBJjfyHPQbImJMhRSCfP4kb4j3SldypNaP+wHHqv0L79jruvwAYhsAMF
fYfz58RwkvQ9RryqfO755yvOfietqkipTXRffMJqmPQtSkjtrYzZs+erueEHnMbP
FUKp1ySkheWyDZXxV2ZTsPy84TWq/zBWRF2mK0pO839UViwv2Wm8sSy+PooJEDCy
+Y9ReOSS87FxFnFelkkYtAzry8ALt3SgWha/iQhpLIfc5ZwlBMlgicX1RtDkQ1H+
TBqZlB+e7P/Iva0AyjZ/ay1E+gOc3tI++N/cksYpPwCdRZaz2mqPfYqbwEZpTBIU
W4kxQdolT9nvIgJPsBeM4dmfLXIR6DyWEg3FgRiWyw5oBfyZN2wNZm8nz7J1muqJ
Yt1qqolY8lHOl5BJfIUjJ8B9ZxrSArPymylcdhu9Nh8ADL9bnQulO2L/RXBQ0jYm
bdNmMCaTSNtvxX/aH/379QkjbOIGXzKVDF1MxTLyjCaCagaoWHVPLqwP6m7tVejg
MhgdWrpEVt9IRYcQx7vtDYZb/YMlk86mmRZwZfKqsdg0RlKF6Go0Ln66KqfqIY86
M+0FsjX4852OolAgs+SbFARVowfX1mXgW7aNq/roTuoIMbfB1qKRmLq1/0eGe7S8
h6+z/mEX+IKX1SU9uwJIucfr8Bee3OZG8its6Tsgz6M2RhtW+ak=
=r6ID
-----END PGP SIGNATURE-----