Posts

Showing posts with the label ngnix

How to upload Bulk file in rails 3 application

If you want to upload bulk file in rails application just follow the following steps 1) create a rails application     rails new bulk_upload 2) Add passenger in your gem file     gem 'passenger' Now try to start with your rails application with the command   passenger start by default it will run on port number 3000 Now if you try to upload bulk files lets just say more than 500 mb or 800 mb you will get an error in the time of uploading like [ error] 4840#0: *557 client intended to send too large body: 94672000 bytes, client: 127.0.0.1, server: _, request: "POST /XXX HTTP/1.1", host: "localhost:3000" so this not error of you application this is the error thrown by passenger and ngnix which is responsible to run passenger First uninstall using purge to remove even configuration files and records:   apt-get purge nginx nginx-common nginx-full Then reinstall it  apt-get install nginx If above doesn't work for you you can also