Manual:$wgRemoteUploads

Name: prasanna kumar maaruthoti

Details
Set to true to enable the upload link while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.

Compare also   which may be the better solution in many cases.