http://localhost:8080/alfresco/service/index/uri/api/upload you will understand that this is POST webscript so you need to create one form and provide necessary fields as input parameters and on submission of form you need to specify this url as action so that your form will pass all required fields to webscript and method should be POST.