Patch for uploading files