Adds file uploading functionality