ensure writable before upload