File upload error in MS Azure after custom domain was pointed to Azure server I am facing an issue with file uploads. I installed a new installation of Craft CMS on Microsoft Azure server. MS Azure assigns a default domain to your webapp like example.azurewebsites.net. 
So while the default domain was assigned, I uploaded few asset files (images) successfully. 

Later we had a custom domain added to Azure like mydomain.org
Once the custom domain was mapped, I edited the SiteURL (in Settings -> General -> mydomain.org) to the custom domain.
Now I am unable to upload asset files. 

The error log shown in the Craft CMS craft.log (from Server Info) is move_uploaded_file(): Filename cannot be empty (D:\serverpath\craft\app\assetsourcetypes\BaseAssetSourceType.php:170)

Can someone please help.
MS support team helped to resolve the issue. I will post the steps to be followed. 


In your CMS Admin, Under Assets source -> 
File system path: images/
URL: http://example.azurewebsites.net/images
(Here the images directory is under public directory)
In Azure portal, Add the following App settings in Application setting of your App service:
key: WEBSITE_DYNAMIC_CACHE 
value: 0
Restart the Azure App service.