---
url: >-
  /statelake/scripting-reference/classes/file-connection-class-tflofilecon/filecon.sendviatransport.md
---

# FileCon.SendViaTransport

Returns **True** if the file is anticipating being sent by a transport.

This will be **True** by default for all cases where *dest* is a **File Definition**.

By setting this property to **False** you can prevent a file sent by a transport, even if there is one configured for the active trading partner against this **File Connection**.

**Declaration**: property SendViaTransport: boolean;

An example.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Dest.FileCon.SendViaTransport := False;
end;
```
