Handles file uploads with mutiple storage backends.