|
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]
|