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

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.
  1. Access your Azure account and open the storage account which is in use with eXtendFiles.
  2. Go to the "Resource sharing (CORS)" tab.
  3. 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 eXtendTecheXtendFileseXtendFiles 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>
Image Placeholder

NetSuite Configuration

Enable the direct upload option on the eXtendFiles Configuration screen.
  1. Go to eXtendTecheXtendFileseXtendFiles Configuration.
  2. Select "Storage Settings" and then "General".
  3. Enable the "Direct Upload" preference.
    Image Placeholder
  4. 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.