Hi,
I installed this great plugin (thanks for it ;-)), but all users, which have lower than upload privilege see uploadfail error message. It is on Firefox 26.0 + Apache and it is because _hook_function_upload is called every time the page is loaded, also when no file was send.
I think, it can be solved with simple checking _FILES variable for containing some sended file before checking privileges. When no file was send, it is not necessary to check privilege and have upload privilege.
Hi, I installed this great plugin (thanks for it ;-)), but all users, which have lower than upload privilege see uploadfail error message. It is on Firefox 26.0 + Apache and it is because _hook_function_upload is called every time the page is loaded, also when no file was send.
I think, it can be solved with simple checking _FILES variable for containing some sended file before checking privileges. When no file was send, it is not necessary to check privilege and have upload privilege.
Thanks! (and sorry for my bad english) ;-)