Version: eXtendFiles 1.7.0 and
above
Audience: Administrator
Summary
This article guides you through the
process of setting up direct file uploads from
your browser to Microsoft Azure using eXtendFiles. By bypassing eXtendFiles
servers, you can significantly improve your
file upload speed using a direct connection to Azure. The configuration must be
carried out by a user with an Administrator
role in NetSuite and a user with Administrator
access to Azure.
Prerequisites
- eXtendFiles is configured and connected to Azure: Configure eXtendFiles for Storage with Microsoft Azure.
Microsoft Azure Configuration
For the most up-to-date
instructions, follow Microsoft's Cross-Origin Resource Sharing (CORS) support for Azure Storage documentation to configure
the Azure container to allow direct uploads
from your eXtendFiles subdomain. Additionally,
sample instructions (as of April 2025) are
below.
- Access your Azure account and open the storage account which is in use with eXtendFiles.
- Go to the "Resource sharing (CORS)" tab.
- Add a new configuration to the "Blob service" type.
A sample CORS configuration is
demonstrated below. Replace YOUR_SUBDOMAIN with the subdomain listed on the eXtendFiles
Approval Setup screen at eXtendTech → eXtendFiles → eXtendFiles Approval
Setup. If you're using the same storage account in multiple NetSuite environments, make
sure to list the subdomain used in each
environment in the "Allowed origins"
element.
<Cors><CorsRule><AllowedOrigins>https://YOUR_SUBDOMAIN.cf.suitextend.net</AllowedOrigins><AllowedMethods>PUT</AllowedMethods><MaxAgeInSeconds>5</MaxAgeInSeconds><ExposedHeaders>ETag</ExposedHeaders><AllowedHeaders>*</AllowedHeaders></CorsRule></Cors>

NetSuite Configuration
Enable the direct upload option on the
eXtendFiles Configuration screen.
- Go to eXtendTech → eXtendFiles → eXtendFiles Configuration.
- Select "Storage Settings" and then "General".
- Enable the "Direct Upload" preference.
- Save the page.
Make sure to
complete the Azure configuration prior to
enabling this preference.
Frequently Asked Questions (FAQs)
Q: Why am I receiving a "File upload failed due to network or CORS error"?
A: This error occurs when "Direct Upload" is enabled in eXtendFiles, but the "Cross-origin resource sharing (CORS)" configuration for the storage account in Azure is not properly set up.
A: This error occurs when "Direct Upload" is enabled in eXtendFiles, but the "Cross-origin resource sharing (CORS)" configuration for the storage account in Azure is not properly set up.