when I try to upload the Microsoft Powerpoint file(*.ppt)
It can't be upload.(but .xls or .doc can)
why?
can't upload *.ppt
How are you trying to upload it?
Through a form or through FTP??
Don't forget that there is a maximum size if you use form to send a file... often, .ppt file are big files... !
Originally posted by suntra
Don't forget that there is a maximum size if you use form to send a file... often, .ppt file are big files... !
I use form method to upload.
Yes,I have set the maximum size(2M) through
<input type=hidden ...>
but I try to upload a file (.ppt size:0.9M),it can't be upload.
Check your max_execution_time in php.ini and make sure it's set to something rather large so your script has enough time to upload the file.
Since the only other files you've uploaded are .doc's and .xls's (which are usually pretty small), this could be your problem.
What is the filename of the PPT file? Sometimes I've had trouble with single quotes and spaces.
rheroux
Does your PHP script start execution before the files are uploaded? I assumed that the upload was handled by the web server, and then when the upload finished the server called the php engine.
Well actually. I dont think when uploading PHP supports the upload of ppt
PHP has a certain amount that it supports most pic files and exe,zip gzip and a few others in programs. Now for ppt. Im not entirely sure it supports it. Maybe your reason why it doesnt work
Originally posted by mikeatrpi
What is the filename of the PPT file? Sometimes I've had trouble with single quotes and spaces.
rheroux
Does your PHP script start execution before the files are uploaded? I assumed that the upload was handled by the web server, and then when the upload finished the server called the php engine.
From my understanding, the execution starts as soon as the user click's the "Upload" button. (Or whatever it is called in the script).
Since PHP is Server Side, and the file is .9MB, this could take longer than the default 30 seconds if a user is on dialup.
Thank you. I did not know that. So my program is running but sitting and waiting for a file to upload. I need to go extend timeouts on a couple of scripts then...
Yeah, I had to extend my max_execution_time because I had some rather lengthy ODBC database queries that took a while.