added generateUploadParameters for direct upload