The Attachments section of E-Commerce B2B Setup page contains the configuration for how file attachments, mainly product images, are stored on the Dynamics NAV Server.
You can access this page by using Search, or Departments / E-Commerce B2B menu.
Following the paradigm that Dynamics NAV is your master database for product catalog, E-Commerce B2B primarily stores the attachments on Dynamics NAV Server. For example, adding an image to your Item will upload the image from your PC to Dynamics NAV Server where the copy of the original file will be stored, and also uploads the image to the Storefront, where it is automatically resized and processed to fit the presentation templates.
Field | Description |
---|---|
Attachment Storage Location | Specifies the method of storing the attachments on Dynamics NAV Server. File System - store attachments into a dedicated folder on Dynamics NAV Server machine, or a network share accessible from Dynamics NAV Server account. This is the preferred option for on-premise Dynamics NAV installations. Database - store attachments directly into your Dynamics NAV database BLOB fields, which does not require access to file system on Dynamics NAV Server. This option should be used for cloud Dynamics NAV environments where there is no easy access to file system resources, and when the total size of your attachments will be small enough not to grow the size of your Dynamics NAV database beyond reasonable. When you change this field, the system will physically move any existing attachments from the file system into the database BLOBs or vice versa to automate such migration tasks. |
Attachment Store Path | When Attachment Storage Location = File System, specifies the path for storing the attachments on Dynamics NAV Server. This path must be entered in Dynamics NAV Server context, “as seen by” Dynamics NAV Server account. The Dynamics NAV Server account must have read/write access to this folder. You can also use a network share using \\SERVER\Share\Folder\ format. |
Max. Image File Size (KB) | Limits the maximum image file size, in kilobytes, that you can attach to an Item. Given that E-Commerce B2B automatically resizes images for the Storefront, it is sometimes tempting to upload unprocessed product images straight from the camera, which are typically way too large for Storefront use both in terms of file size and image dimensions. Storing and automatically processing such images then consumes considerable system resources. It is therefore reccomended that you limit the image sizes to e.g. 700KB, which is typically enough for large product images at acceptable quality. |