0

I alreay change

memory_limit => -1 => -1

post_max_size => 25M => 25M

and when I try to dd($request->img);

if I used 2mb It's work but if I use 6mb It return this when I try to dd

UploadedFile {#434 ▼
  -test: false
  -originalName: "test.JPG"
  -mimeType: "application/octet-stream"
  -error: 1
  #hashName: null
  path: ""
  filename: ""
  basename: ""
  pathname: ""
  extension: ""
  realPath: "/Applications/MAMP/htdocs/test/public"
  aTime: 1970-01-01 07:00:00
  mTime: 1970-01-01 07:00:00
  cTime: 1970-01-01 07:00:00
  inode: false
  size: false
  perms: 00
  owner: false
  group: false
  type: false
  writable: false
  readable: false
  executable: false
  file: false
  dir: false
  link: false
}

UPDATE

here is my . html

<form action="{{ route($route.'store') }}" method="POST" enctype="multipart/form-data">
   <input type="file" name="img" class="dropify" data-height="300" >
</form>
TryHardz
  • 149
  • 2
  • 11

1 Answers1

0

edit your php.ini file and set:

memory_limit = 32M
upload_max_filesize = 70M
post_max_size = 100M

and restart apache.

Christian Gallarmin
  • 660
  • 4
  • 15
  • 34