Microsoft
Software
Hardware
Network
Question : move_uploaded_file() not working
Hi,
I have one form with 8 file fields. When i uploads 1/2 images of size more than 2mb, it gets uploaded. But when i am uploading 8 images each of size more than 2mb, it is not uploaded. It gives an error as
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
[email protected]
and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
or come up with warnings like -
Warning: move_uploaded_file(/tmp/ph
piVhksk) [function.move-uploaded-fi
le]: failed to open stream: No such file or directory in /mnt/w0611/d20/s43/b02aab7
0/www/d2ec
ars.com/Ca
r_Images.p
hp on line 168
Warning: move_uploaded_file() [function.move-uploaded-fi
le]: Unable to move '/tmp/phpiVhksk' to 'images/upload_images/Volv
o_DC1_conc
ept_car_(2
000)_1.JPG
' in /mnt/w0611/d20/s43/b02aab7
0/www/d2ec
ars.com/Ca
r_Images.p
hp on line 168
I have set variables in php.ini as-
register_globals = on
upload_max_filesize = 350M
post_max_size = 350M
session.save_path = "/mnt/w9999/.phpsessions"
upload_tmp_dir = "/tmp/"
zend_extension = /usr/local/nf/share/ioncub
e/ioncube_
loader_fre
_4.4.s
also set variables in .htaccess file as-
Setenv TIMEOUT 300
<IfModule mod_php4.c>
php_value upload_max_filesize 350M
php_value post_max_size 350M
php_value post_max_size = 350M ;
</IfModule>
Set the values from php script as-
set_time_limit(0);
session_start();
error_reporting( E_ALL );
ini_set('memory_limit', '350M');
ini_set('upload_max_filesi
ze', '350M');
ini_set('post_max_size', '350M');
Can you please give me any suggestion to resolve the error and can upload 8 images of more than 2mb in size?
Thanks
Related Solutions:
move_uploaded_file not working
Answer : move_uploaded_file() not working
Windows Storage is just like a standard Windows OS with less network and other feature than Standard Edition. I am sure you can install any OS on this server.
K
Random Solutions
Your message wasn't delivered because of security policies. Microsoft Exchange will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator
drop db but keep the files
CX600 FLARE 2.05.600.5.007 - upgrade procedure to 2.19?
How do I check if a window is already open or give it focus using Flex/Flash
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
need .ico
Cannot connect to Watchguard Firebox X15 Edge after factory reset
SAP RFC returning Invalid Data Type
Internet Monitoring Reporting software Sonicwall
Domain rename prior to consolidation