nilsuria
laravel volume for the image storage
But then how I have to configure the storage disk in Laravel? Right now, to upload the image I'm doing: $image->store('public/uploads'). The image can't be saved in /app/<pick_a_name_not_in_use>, since it have to be in the /public/storage folder
13 replies
How can I modify the nginx configuration in Railway?
I've been trying to do so, but I can't get the correct Dockerfile configuration. The template provided by Railway is missing the Dockerfile: https://github.com/railwayapp-templates/laravel
19 replies
How can I modify the nginx configuration in Railway?
I see that this could be related to the permissions of the temporary path that nginx is using to store large images as pointed here: https://github.com/laravel/framework/issues/31249
19 replies
How can I modify the nginx configuration in Railway?
Finally I could change the php.ini configurations adding this code to the web.php file: Route::group(['middleware'=>'custom_middleware'], function () {
ini_set('upload_max_filesize', '5000M');
ini_set('post_max_size', '5000M');
});
19 replies
How can I modify the nginx configuration in Railway?
Thanks a lot for the support. This is a point in the right direction, but it's still not uploading the file. I figured out myself that the correct file name is nginx.template.conf and not .config, but now I have this error: "POST Content-Length of 9218627 bytes exceeds the limit of 8388608 bytes". I guess this should be modified in the php.ini file but, again, I can't see where I can modify that in Railway.
19 replies