Reply to Re: Upload of bug files

Your name:

Reply:


Posted by dkruger on 08/09/07 13:34

On Aug 9, 8:09 am, Defacta <vincent.margue...@gmail.com> wrote:
> Hi,
>
> I have set my max upload file to 200M by modifiying the php.ini file:
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 200M
>
> The function:
> echo ini_get("upload_max_filesize") ;
> display 200M.
>
> But I cannot upload files bigger than 7N, and yet I have no error
> message, the script of the form is executed as if the form where
> empty !
>
> Does anyone know how to upload big files in a <form> ?
>
> For exemple, if I put this at the beginning of the script:
> copy($HTTP_POST_FILES['img']['tmp_name'],
> $path_howsthat."/clients_imgs/toto.jpg") ;
>
> It does not copy anything and there is no error message, also,
> echo $HTTP_POST_FILES['img']['tmp_name'] is empty
>
> Thanks,
> Vincent.

hello, though it might not be the case with your problem, in your form
code on the page, make sure that you have then enctype is set
properly. In your form code, make sure it has a hidden field like
<INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="200000000"> This
might help with the problem, worth a try anyway.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация