Topic: avatar upload

In profile.php, in the avatar section, you have

if (!isset($_FILES['req_file']))
   message($lang_profile['No file']);

That code doesn't do anything, I tested it. The message that appears, comes from the error handling (error case 4).

FluxBB - v1.4.8

Re: avatar upload

sorry to double post... but what about this?

FluxBB - v1.4.8

Re: avatar upload

Moved to Troubleshooting, since that's 1.2 code, not 1.3 code.
The code in 1.3 did have a slight issue with an undefined index, which I'm fixing now.

Re: avatar upload

The code works fine, I just tested it.
I believe you actually have to send a POST request without req_file set to trigger that error.

Re: avatar upload

???
it is 1.3 code
and what exactly do you mean with your last post?

FluxBB - v1.4.8

Re: avatar upload

oh i see what you mean. it just overwrote the first error, right?

FluxBB - v1.4.8

Re: avatar upload

It isn't 1.3 code. 1.3 uses an array, it doesn't call the message function.

Re: avatar upload

uh right

FluxBB - v1.4.8