[openupload-devel] File size exceeded
Status: Beta
Brought to you by:
tsdogs
|
From: Freaky <fr...@ba...> - 2013-01-18 10:23:35
|
Hi,
I'm running into errors uploading files and get an error file size
exceeded.
Not being a dev I'm running out of options. Get this error even with 2k
files. I've inserted some code and $_FILES['tag']['error'] (don't recall
the actual input field name :)) indeed returns 2 (which means file size
exceeded). It's driving me insane :).
First I tried Filez. Filez seems highly 'unstable' (git dev code, non
matching/lacking db table layouts, docs don't match git code, etc.).
Filez uses APC for upload progress too. Had too much issues getting it
to work and found this then. This had some login issues, fixed those and
get the same upload error to my surprise.
Post size and upload size is set to 3072M - so no, 2k does not exceed
that by far. The upload page reflects that too stating max upload size
is 3G.
What's odd is that I created some simple scripts like this:
t.html
==========================================================
<html>
<body>
<form action="up.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>
up.php
==========================================================
<?php
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br>";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br>";
echo "Type: " . $_FILES["file"]["type"] . "<br>";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
?>
Couldn't be much simpler (code from w3schools) :). These files are in
the openupload www directory so they have the same config/settings/etc.
Here uploading works just fine. Not only that, if I upload a somewhat
large file (how large depends on where I am (bandwidth), something large
enough to take ~20 sec or so) with this script I nicely see it create a
temp upload file during the upload under /tmp (which is the php.ini's
temp upload path). This is *NOT* the case with openupload (nor filez)
which both return the file size exceeded error. The file is gone after
the upload, think the script is supposed to copy it before it exits or
something.
Because both use APC I figured it might have to do with that. Stripped
the entire module from php, verified it was gone with phpinfo();, same
issue :(.
Any ideas/pointers? PHP doesn't throw any errors which makes debugging
quite hard for me, I'm not entirely without knowledge though.
Kind regards,
|