Skip to content
Advertisement

Error user uploading file on Heroku but not local

I have an app where the user can upload a picture file. I use s3 for storage. On my local machine this works fine but when I deploy to Heroku, every time I try to upload (by clicking a form button in my app) I get an error saying ‘The “” file does not exist or is not readable’. It crashes on this line of code:

JavaScript

The problem seems to lie with the put method inputs. I did a dump and die on request(‘image’) right before that line of code. On my local copy here’s what I see:

JavaScript

Here’s what I see on Heroku:

JavaScript

I’m guessing it’s some kind of file system permission problem but open to ideas.

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement