You should upload your large files directly to Amazon S3 or similar and then process the file using a Heroku background worker. Typically, your web page will use some sort of polling (usually an AJAX request) to see when the processing has finished and update the front end.