Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Max POST size #7

Closed
telephone opened this issue Sep 10, 2012 · 3 comments
Closed

Max POST size #7

telephone opened this issue Sep 10, 2012 · 3 comments

Comments

@telephone
Copy link

Hey,

I just read over the code quickly so I may have missed this, but did you implement an error for if the file exceeds the maximum POST size?
That is, when a POST exceeds the maximum size, the returned POST array is empty (Which can cause a lot of headaches for those who are unaware of this behaviour).

If you have, then ignore this ;)

@codeguy
Copy link
Contributor

codeguy commented Sep 11, 2012

Nope. Will work on this now.

@codeguy
Copy link
Contributor

codeguy commented Sep 11, 2012

Additional validations needed:

  • Check that ini enables file uploads
  • Check file upload error constant
  • Check file size is <= ini upload_max_size

@codeguy
Copy link
Contributor

codeguy commented Sep 11, 2012

I've added additional validations in 1.3.0 that look at the $_FILES[key]['error'] constant. This should reveal a variety of upload errors.

@codeguy codeguy closed this as completed Sep 11, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants