|
Posted by petersprc on 10/03/07 23:40
Hi,
You could make a function uploadErrorMsg($errCode) which will return
the message string so you can re-use it.
Ming wrote:
> Hi there,
>
> Is there a handy way to show error message instead of error code when
> uploading?
>
> For example, if I get error code 3 (UPLOAD_ERR_PARTIAL), I can
> directly show users that 'Only part of the file was uploaded.' instead
> of if $errorCode==3 then print 'Only part of the file was uploaded.',
> which is time-consuming.
>
> Thanks,
Navigation:
[Reply to this message]
|