How can i find the attached file that send through API?


#1

Hi everybody.

i’m using the web service to create an action on wfg that contains attachment.
my question is where is the physical location of the attached file on wfg app server?
FYI below is the context that i used to post the request :

<NewDataSet>
	<parameter>
		<name>REQUEST_LBLVALIDATION</name>
		<dataType>TEXT</dataType>
		<direction>INOUT</direction>
	</parameter>
	<parameter>
		<name>REQUEST_DTVACATIONSTARTDATE</name>
		<dataType>DATETIME</dataType>
		<direction>INOUT</direction>
		<dateTimeValue>2019-01-31T00:00:00</dateTimeValue>
	</parameter>
	<parameter>
		<name>REQUEST_DTVACATIONENDDATE</name>
		<dataType>DATETIME</dataType>
		<direction>INOUT</direction>
		<dateTimeValue>2019-01-31T00:00:00</dateTimeValue>
	</parameter>
	<parameter>
		<name>REQUEST_FILEATTACHMENT</name>
		<dataType>FILE</dataType>
		<direction>OUT</direction>
		<fileName>SCAN.PDF</fileName>
		<fileDescription>My attachement</fileDescription>
		<fileSize>778</fileSize>
		<fileContentType>application/pdf</fileContentType>
		<fileDateLastModified>2019-01-31T16:11:51-05:00</fileDateLastModified>
		<fileOriginalPath>\\sharedStorage\upload\Request_fileAttachment\128556.PDF</fileOriginalPath>
		<filePath>\\sharedStorage\upload\Request_fileAttachment\128556.PDF</filePath>
	</parameter>
	<parameter>
		<name>REQUEST_TXTVACATIONPERIOD</name>
		<dataType>NUMERIC</dataType>
		<direction>INOUT</direction>
		<numericValue>1</numericValue>
	</parameter>
</NewDataSet>

thanks.


#2

Hi Ahmed,

The file will be save on your ...\App_dataApp_Data\Files\DataSet\runtime folder.

The final location could be like this : ...\App_Data\Files\DataSet\runtime\2019\02\25.

Regards,
Quentin