rewrite safe_upload with using :place_if_modified
add :sudo option