LARAVEL API post size limit
fcaceres98
HOBBYOP

9 months ago

Hi, I wish to increase my post size limit on my api to upload images can you guys help me out? Thanks in advance.

Solved

0 Replies

fcaceres98
HOBBYOP

9 months ago

Project ID: 275c8ba3-ba27-4ea3-ab4d-b9ef8dfb135c


fcaceres98
HOBBYOP

9 months ago

uploadmaxfilesize = 20M
postmaxsize = 21M
How can I set this values on my php ini


fcaceres98
HOBBYOP

9 months ago

@Brody How can I implement a fix like this on my Project
RUN echo "uploadmaxfilesize = 20M" >> /usr/local/etc/php/php.ini # Add this line to set uploadmaxfilesize
RUN echo "postmaxsize = 21M" >> /usr/local/etc/php/php.ini # Add this line to set postmaxsize


fcaceres98
HOBBYOP

9 months ago

@Brody I found your response to some one in Help Station this worked for me too, thanks again.
For any one else you need to add this 2 files to your root project.
https://gist.github.com/brody192/fcc1136b61c3de20609fa91ee384d47c
https://gist.github.com/brody192/ed12b50fd39e373a28d75f25b100a87d#file-nixpacks-toml


adam
MODERATOR

9 months ago

!s


Status changed to Solved adam 9 months ago


Loading...