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
Clients not connecting to WSUS
MySQL update set Concatenate question
How to set the forecolor a column in datagridview.vb.net 2005 windows
ADFIND, DSQUERY or LDAP Querie for Pulling LastLogOn
Sending email from ASP.Net 2.0
how can i translate gujarati sentence into english sentence ??
Problems after Sharepoint server 2010 install - can not open central administration
Running the System Update readiness tool.
SQL Simple syntax issue - based on Group By / Having
OCS 2007 R2 and Cisco call manager