Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > File Upload Problem
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 19th November 05:41
mike
External User
 
Posts: 1
Default File Upload Problem



Hello,
I am trying to upload a file via a web page of 1.6 meg.
I have set:
php_value upload_max_filesize 16M
php_value post_max_size 18M
in an htaccess file and they show up correctly on my phpinfo file.
I have:
<input name="MAX_FILE_SIZE" type="hidden" value="20097152" /> (Which
is 20 meg) as a form field
I can upload 750k without a problem.But it gives me an error
INSTANTLY
when I try a larger file.
Any suggestions? Could it be the temp directory doesnt allow bigger
files?
Thanks,
Mike
  Reply With Quote


 


2 19th November 05:41
fwdkhan
External User
 
Posts: 1
Default File Upload Problem



Hi,

Try to increase your script execution Time. By setting
max_execution_time to something greater.

Regards,

Fahad Khan.
  Reply With Quote


 


3 25th December 08:56
eclipsme
External User
 
Posts: 1
Default File upload problem


I finally have my combo file upload and db update script working. Yay!
However, I am getting a permission denied error when moving the file to
its final destination.

move_uploaded_file($_FILES[$field]['tmp_name'],$newname)

If I manually chmod the folder to 777 or 777 everything works great,
except that I have a folder with write permissions.

I get the same permissions error if I try to chmod, or mkdir from within
the script.

The $newname is the full path - home/username/public_html/. Is this an
issue? Is there another way?

I'm at a loss.
Thanks,
Harvey
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666