Click or drag to resize

IDocStorageServiceSaveDoc Method (IAppContext, String, String, String, String, String, String, String)

Save a document to the document storage repository. Note, prior to platform v3.5.9 the default behaviour of this method was to delete the source file. Beginning with platform v3.5.9 the default behaviour is to not delete the original source file. Use SaveDoc(IAppContext, String, String, String, String, String, String, String, DocStorageOptions) with DeleteSourceFile if you do want the source file deleted.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
string SaveDoc(
	IAppContext cxt,
	string path,
	string pk,
	string name,
	string mimeType,
	string docType,
	string desc,
	string docId
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
path
Type: SystemString
The path to the file to save.
pk
Type: SystemString
The primary key to the owning record in the originating mapper.
name
Type: SystemString
The "pretty" name of the file.
mimeType
Type: SystemString
The document MIME content type (e.g. "image/gif").
docType
Type: SystemString
The application-specific document type.
desc
Type: SystemString
The document description.
docId
Type: SystemString
The ID of the existing document that this document should replace if it exists.

Return Value

Type: String
The document ID in the repository.
See Also