return error if public upload is disabled