Ask a Question related to PHP Development, Design and Development.
-
anjp2003 at indiatimes dot com #1
#25168 [NEW]: not able to upload files larger than 1 Mb.
From: anjp2003 at indiatimes dot com
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: Filesystem function related
Bug description: not able to upload files larger than 1 Mb.
Description:
------------
sir,
i am not able to upload files having size greater then 1MB. This is not
giving any error also. it is just displaying that : " the page cannot be
displayed","Refresh options"....
Reproduce code:
---------------
<form name="upload" enctype="multipart/form-data" method="post"
action="submit_ups.php">
<input type="hidden" name="MAX_FILE_SIZE"
value="5242880">
<b>File-Name:</b>
<input type=text name="name1"></td>
<B>Upload this file: </B><input type=file name="inputfile"
value="hai"><BR>
-------------------------------------------------------------
submit_ups.php
----------------------------------------------------------
if (!empty($inputfile))
{
if (move_uploaded_file($inputfile, $tmpfile))
echo ("File uploaded succesfully ");
else
echo ("File can't be uploaded");
if (!$UPLOAD_ERR_INI_SIZE)
echo("The uploaded file is uploaded. ");
else
echo("The uploaded file exceeds the upload_max_filesize
directive in php.ini.");
if (!$UPLOAD_ERR_OK)
echo ("NO ERROR");
else
echo("There is error,the file is not uploaded with
success.");
Expected result:
----------------
files of size larger than 1 MB should get uploaded...
otherwise if there is some problem while uploading, an error should be
printed...
--
Edit bug report at [url]http://bugs.php.net/?id=25168&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25168&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25168&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25168&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25168&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25168&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25168&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25168&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25168&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25168&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25168&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25168&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25168&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25168&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25168&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25168&r=gnused[/url]
anjp2003 at indiatimes dot com Guest
-
Illustrator 11 files with larger than before
I have a user that says that when he links scanned images, the files are larger than when he embeds them. He said this was not the case in previous... -
#25168 [Opn->Fbk]: not able to upload files larger than 1 Mb.
ID: 25168 Updated by: moriyoshi@php.net Reported By: anjp2003 at indiatimes dot com -Status: Open +Status: ... -
#19749 [Sus->WFx]: shouldn't mmap() files larger than memory_limit in _php_stream_passthru
ID: 19749 Updated by: sniper@php.net Reported By: rasmus@php.net -Status: Suspended +Status: Wont... -
#22154 [Bgs->Ver]: fpassthru() fails with files larger than a few hundered KB
ID: 22154 Updated by: sniper@php.net Reported By: malekjo at aphrodite dot com -Status: Bogus +Status: ... -
#22154 [Ver->Bgs]: fpassthru() fails with files larger than a few hundered KB
ID: 22154 Updated by: iliaa@php.net Reported By: malekjo at aphrodite dot com -Status: Verified +Status: ...



Reply With Quote

