Version: eXtendFiles 1.8.7 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 April 2026):

  1. Sign in to Azure, navigate to the Storage Center, and open your Storage account in the Object Storage → Blob Storage menu.
  2. In the left menu, go to Resource sharing (CORS).
  3. Under the Blob service tab, add a new CORS rule as outlined below.
Image Placeholder

Blob Service CORS Rule

To enter the Allowed origins value in the CORS rule, you first need to find your eXtendFiles subdomain in the eXtendFiles Configuration page.
  1. Go to the NetSuite path eXtendTecheXtendFileseXtendFiles Configuration and look for the subdomain value.

  2. Once you know your subdomain, enter the following values for the Blob service CORS rule. Don't forget to Save after you enter these values.
    1. Allowed origins: your subdomain, in the format: https://YOUR_SUBDOMAIN.cf.suitextend.net
    2. Allowed methods: PUT
    3. Allowed headers: *
    4. Exposed headers: Content-Type
    5. Max age: 1800

(click the image above to open it in pop-up mode for easy viewing)
If you use the same Azure storage account with multiple NetSuite environments, include each environment’s subdomain as an Allowed origin.

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).