@@ -257,7 +257,7 @@ public bool ClassifyElements(Callback<ClassifyReturn> callback, System.IO.Memory
257
257
req . Forms = new Dictionary < string , RESTConnector . Form > ( ) ;
258
258
if ( file != null )
259
259
{
260
- req . Forms [ "file" ] = new RESTConnector . Form ( file , null , fileContentType ) ;
260
+ req . Forms [ "file" ] = new RESTConnector . Form ( file , "filename" , fileContentType ) ;
261
261
}
262
262
if ( ! string . IsNullOrEmpty ( model ) )
263
263
{
@@ -342,7 +342,7 @@ public bool ExtractTables(Callback<TableReturn> callback, System.IO.MemoryStream
342
342
req . Forms = new Dictionary < string , RESTConnector . Form > ( ) ;
343
343
if ( file != null )
344
344
{
345
- req . Forms [ "file" ] = new RESTConnector . Form ( file , null , fileContentType ) ;
345
+ req . Forms [ "file" ] = new RESTConnector . Form ( file , "filename" , fileContentType ) ;
346
346
}
347
347
if ( ! string . IsNullOrEmpty ( model ) )
348
348
{
@@ -433,11 +433,11 @@ public bool CompareDocuments(Callback<CompareReturn> callback, System.IO.MemoryS
433
433
req . Forms = new Dictionary < string , RESTConnector . Form > ( ) ;
434
434
if ( file1 != null )
435
435
{
436
- req . Forms [ "file_1" ] = new RESTConnector . Form ( file1 , null , file1ContentType ) ;
436
+ req . Forms [ "file_1" ] = new RESTConnector . Form ( file1 , "filename" , file1ContentType ) ;
437
437
}
438
438
if ( file2 != null )
439
439
{
440
- req . Forms [ "file_2" ] = new RESTConnector . Form ( file2 , null , file2ContentType ) ;
440
+ req . Forms [ "file_2" ] = new RESTConnector . Form ( file2 , "filename" , file2ContentType ) ;
441
441
}
442
442
if ( ! string . IsNullOrEmpty ( file1Label ) )
443
443
{
@@ -976,7 +976,7 @@ public bool CreateBatch(Callback<BatchStatus> callback, string function, System.
976
976
req . Forms = new Dictionary < string , RESTConnector . Form > ( ) ;
977
977
if ( inputCredentialsFile != null )
978
978
{
979
- req . Forms [ "input_credentials_file" ] = new RESTConnector . Form ( inputCredentialsFile , null , "application/json" ) ;
979
+ req . Forms [ "input_credentials_file" ] = new RESTConnector . Form ( inputCredentialsFile , "filename" , "application/json" ) ;
980
980
}
981
981
if ( ! string . IsNullOrEmpty ( inputBucketLocation ) )
982
982
{
@@ -988,7 +988,7 @@ public bool CreateBatch(Callback<BatchStatus> callback, string function, System.
988
988
}
989
989
if ( outputCredentialsFile != null )
990
990
{
991
- req . Forms [ "output_credentials_file" ] = new RESTConnector . Form ( outputCredentialsFile , null , "application/json" ) ;
991
+ req . Forms [ "output_credentials_file" ] = new RESTConnector . Form ( outputCredentialsFile , "filename" , "application/json" ) ;
992
992
}
993
993
if ( ! string . IsNullOrEmpty ( outputBucketLocation ) )
994
994
{
0 commit comments