Fixed the issue where a dynamic method was being called statically
Added an extra sanity check in the upload class