Check whether lazy upload is enabled or not before opening the file