/usr/share/perl5/MT/CMS/Asset.pm
Around line 964:
if ( $q->param('site_path') ) {
#$root_path = $blog->site_path;
$root_path = $app->static_file_path;
}
Around line 1012 (only changed %r to %s):
$asset_file = $q->param('site_path') ? '%s' : '%a';
$asset_file = File::Spec->catfile( $asset_file, $relative_path );
$local_file = File::Spec->catfile( $path, $basename );
$base_url = $app->param('site_path') ? $blog->site_url
: $blog->archive_url;
$asset_base_url = $app->param('site_path') ? '%s' : '%a';
Also updated /usr/share/movabletype/tmpl/cms/include/asset_upload.tmpl again to override option to choose upload folder.
See also:
