pkgsubmit.php: Improve file upload error messages
commitb5ffdeb63e3df5c341f9ccdafcfbaa446c5670f4
authorcanyonknight <canyonknight@gmail.com>
Fri, 29 Jun 2012 01:21:16 +0000 (28 21:21 -0400)
committerLukas Fleischer <archlinux@cryptocrack.de>
Fri, 6 Jul 2012 09:27:14 +0000 (6 11:27 +0200)
tree7151d0dff5ee7d0e8037e25fa8dd6f15897f974a
parent5ebf9d64ee03e0b19f42b0475ad7750eef911392
pkgsubmit.php: Improve file upload error messages

* Currently, $_FILES showing a filesize of zero is interpreted as no file was
uploaded, despite other errors potentially being the cause.
* The $_FILES superglobal stores what the actual error was, so use it. This
includes file write problems, empty uploads, partial uploads, and
upload_max_filesize being exceeded.

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/html/pkgsubmit.php