Increase the Limit of File Upload Size in Heroku While Uploading to Dropbox

Increase the limit of file upload size in Heroku while uploading to Dropbox

To increase the file upload limit in Heroku while uploading to Dropbox, follow these steps:

  1. Create a file named custom_php.ini, preferably.
  2. Insert two attributes post_max_size and upload_max_filesize and set their value to the desired upload limit. (In my case, its 100M)
  3. Create a ProcFile and add this line web: vendor/bin/heroku-php-apache2 -i custom_php.ini .
  4. Commit these changes to Heroku.

I missed to add post_max_size in my custom_php.ini. And by this method, you can override any php.ini configuration for Heroku.

Large file upload to amazon s3 failing after 30 second limit set by heroku

After many months on this issue, i found a gem that works well, by uploading directly to amazon s3, without any complex flash, and javascript suff. I also integrates into carrierwave.
The gem is called Carrierwave_direct

Works without a problem, however if you are using rails 3.0.x checkout this page for a solution.

If you are using rails rails 3.1.x, you are all set to go.

Error user uploading file on Heroku but not local

Turns out that uploading pics <2MB worked. Maybe it's a setting in php.ini but not sure how to edit that on Heroku



Related Topics



Leave a reply



Submit