J
Jam
Guest
Hi
I have a file upload code that checks for a few things, and depending on checks it allows file uploading or doesn't allow file uploading.
Problem:
When the same file is being uploaded twice, the error message should be, error code: 7, as per my php class:
else if ($upload->error_type="7"
however it returns: 1 and jumps to code:
else if ($upload->error_type="1"){
What am i doing wrong?
I tried doing each error code as seperate if () { , that doesnt work either.
I want the appropriate, coresponding error cde and message returned, thats all!
full code:
example.php
class_upload.php
http://pastebin.com/md8ad138
Thanks in advance
Tovia
I have a file upload code that checks for a few things, and depending on checks it allows file uploading or doesn't allow file uploading.
Problem:
When the same file is being uploaded twice, the error message should be, error code: 7, as per my php class:
else if ($upload->error_type="7"
however it returns: 1 and jumps to code:
else if ($upload->error_type="1"){
What am i doing wrong?
I tried doing each error code as seperate if () { , that doesnt work either.
I want the appropriate, coresponding error cde and message returned, thats all!
full code:
example.php
class_upload.php
http://pastebin.com/md8ad138
Thanks in advance
Tovia