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:
- Create a file named
custom_php.ini
, preferably. - Insert two attributes
post_max_size
andupload_max_filesize
and set their value to the desired upload limit. (In my case, its 100M) - Create a ProcFile and add this line
web: vendor/bin/heroku-php-apache2 -i custom_php.ini .
- 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
File_Get_Contents Returns Empty String
PHP Reflection - Get Method Parameter Type as String
Distance Calculations in MySQL Queries
Laravel 4.1: How to Paginate Eloquent Eager Relationship
Uploading a File via Ajax with PHP
Extract Floating Point Numbers from a Delimited String in PHP
Get Content Within a HTML Tag Using PHP and Replace It After Processing
PHP Sending Variables to File_Get_Contents()
Why Does PHP 7.4 on Windows Aborts All Command Line Actions That Require User Input
.Htaccess Mod_Rewrite > 500 Internal Server Error
How to Enable Curl for an Installed Ubuntu Lamp Stack
How to Learn About PHP Internals
Laravel 5:Class 'Input' Not Found
Is Header('Content-Type:Text/Plain'); Necessary at All
Install PHP-Mcrypt on Centos 6