Fixed file upload error, and updated download operation with as per new implementation