implemented open/upload file