Added the upload functionality to method.php

@cyberhck had left that for users :) .