投稿済み Wed, 05 Feb 2025 08:51:57 GMT 、投稿者 Lorenz Psaier
Im updating an older api framework to the last one and i have seen that the method  FileCabinetExtensionsBase UploadDocument has changed.
In the samples are still the old call and i can't figure out how to use the new InputDocument / IFileUploadInfo. Has anyone an example to share.

Thanks 
投稿済み Wed, 12 Feb 2025 12:58:06 GMT 、投稿者 Craig Heintz SE
o references
public static Document UploadSingleFileToBasket(FileCabinet basket)
var fi . new Filelnfo("file.pdf");
Document uploadedDocument;
if (fi.Length > 2000008)
uploadedDocument = basket.ChunkUeloadDocument(fi, Ox1000000);
else
uploadedDocument = basket.UploadDocument(fi);
return uploadedDocument;
Ordemmon
public static Document UploadSingleFileToFileCabinet(FileCabinet fileCabinet)
{
var indexData = nee•: Document()
{

Fields   new List<DocumentlndexField>()
{

DocumentlndexField.Create("RECIPIENT", "Me"),
DocumentlndexField.Create("SENDER", "Airline XYZ"),

}
};
//var uploadedDocument = fileCabinet.UploadDocument(indexData, new Filelnfo("Flug.pdf"));

var uploadedDocument fileCablnet.UploadDocument(k
return uploadedDocument (extension) Document FileCabinetUploadDocument(InputDocument inputDocument)
Uploads the specified document
inputDocument: The file.

フォーラムに投稿するためにはログインが必要です。