LARAVEL API post size limit
fcaceres98
HOBBYOP

a year 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

5 Replies

fcaceres98
HOBBYOP

a year ago

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


fcaceres98
HOBBYOP

a year ago

upload_max_filesize = 20M

post_max_size = 21M

How can I set this values on my php ini


fcaceres98
HOBBYOP

a year ago

@Brody How can I implement a fix like this on my Project

RUN echo "upload_max_filesize = 20M" >> /usr/local/etc/php/php.ini # Add this line to set upload_max_filesize

RUN echo "post_max_size = 21M" >> /usr/local/etc/php/php.ini # Add this line to set post_max_size


fcaceres98
HOBBYOP

a year 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


a year ago

!s


Status changed to Solved adam about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...