Version: eXtendFiles 1.8.4 and above
Audience: Administrator

Summary

This article explains how to enable Direct Upload for Microsoft Azure in eXtendFiles.

With Direct Upload, files upload from the user’s browser directly to Azure Blob Storage instead of routing through eXtendFiles servers. This typically improves upload speed.

Before you begin

⚠️ Do not enable Direct Upload in NetSuite until the Azure CORS configuration is complete.

Step 1: Configure CORS in Microsoft Azure


To configure CORS (sample steps as of February 2026):

  1. Sign in to Azure and open the Storage account used by eXtendFiles.
  2. In the left menu, go to Resource sharing (CORS).
  3. Under Blob service, add a new CORS rule.

What to use for Allowed origins

Use your eXtendFiles subdomain from NetSuite:

If you use the same Azure storage account with multiple NetSuite environments, include each environment’s subdomain as an Allowed origin.

Sample CORS rule (XML)

<Cors>
  <CorsRule>
    <AllowedOrigins>https://YOUR_SUBDOMAIN.cf.suitextend.net</AllowedOrigins>
    <AllowedHeaders>*</AllowedHeaders>     <AllowedMethods>PUT</AllowedMethods>     <ExposedHeaders>Content-Type</ExposedHeaders>
    <MaxAgeInSeconds>1800</MaxAgeInSeconds>
  </CorsRule>
</Cors>
Image Placeholder

Step 2: Enable Direct Upload in NetSuite

After the Azure CORS rule is in place:
  1. Go to eXtendTecheXtendFileseXtendFiles eXtendFiles Configuration.
  2. Select Storage Settings.
  3. Select General.
  4. Enable Direct Upload.
    Image Placeholder
  5. Click Save.

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.
Q: How many CORS rules can I configure?
A: Microsoft Azure supports up to 5 CORS rules per storage service (Blob, File, Table, and Queue).