prasadchinwal5's avatar

stream_socket_sendto(): Connection refused

Info:

I have a basic file upload form in blade which hits the store method on my controller.

Issue:

When i submit the form without uploading the file and dd() on controller store method I can see my request. But when i attach a file with the form i get the below error

stream_socket_sendto(): Connection refused

My thoughts

I believe this might be an issue with php-fpm and/or web server. But funny thing is it works perfectly in my test environment and fails on the production server.

Any help is appreciated!

0 likes
2 replies
prasadchinwal5's avatar
prasadchinwal5
OP
Best Answer
Level 35

@devfrey thanks for taking out the time to comment. I fixed the issue with chmod 777 for storage/app/public directory.

Please or to participate in this conversation.