Reference > Shop flow URLs > Catalog subsystem URLs > File upload


CatalogFileUpload URL

This URL uploads the catalog file in CSV format.


URL structure

http:// host_name/path/

The fully qualified name of the WebSphere Commerce Server and the configuration path.

Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, CatalogFileUpload , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

filename

Required: The local file name to be uploaded.

URL

Required: The URL to be called when the command completes successfully.

errorURL

Required: The URL to be called if the command fails.

storeId

Required: The store's reference number associated with the catalog file being uploaded. Note that this parameter is optional if the store ID is available in the command context.

fileType

The file type. Only CSV is supported.

encoding

The encoding for the file. While the default encoding is UTF8, other values are supported, for example, 8859-1, GB2312, Big5, and so on.


Example

This example uploads a catalog CSV file into the WebSphere Commerce Server:

http://host_name/webapp/wcs/stores/servlet/CatalogFileUpload?filename=
E:\catalog.csv&encoding=UTF-8&storeId=1&fileType=CSV&URL=
CatalogUploadView&errorURL=CatalogUploadErrorView


Behavior


Exception conditions

Related reference

CatalogImportJobAdd URL

ScheduledCatalogFileProcess URL


+

Search Tips   |   Advanced Search