Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
File upload memory exhausted
  • Hi,
    I'm trying to create a function that handles upload of an avatar image, then crops it according to data received and saves it back.
    However, every time when it's run with file larger than 2MB I get a 500 error with the message, that I've run out of memory (268435456 bytes).
    This is the function, that should handle the whole process: http://bin.fuelphp.com/~KR
    What am I doing, that consumes so much memory?
  • With a 500 message I assume a 500 from the webserver?

    Check your php.ini file, by default file uploads are restricted to 2Mb in size (look for "upload_max_size").

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion