adityar15's avatar

Laravel csv upload error

So my app is deployed on AWS Elastic Beanstalk. The CSV upload works great on the local server but on the live server(on AWS) it gives errors for files beyond 2MB.

Here is the validation error

The import file failed to upload.

I tried increasing the upload file size and post max size to 20M

files:
  "/etc/php.d/project.ini" :
    mode: "000644"
    owner: root
    group: root
    content: |
      upload_max_filesize = 20M
      post_max_size = 20M

This is also doesn't work. I am not sure if I am missing something. I am not using any library for import.

0 likes
3 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

Did you try restarting instance.

1 like
adityar15's avatar

It is working now, just needed to restart all the app servers. Thanks @jlrdw

1 like

Please or to participate in this conversation.