# File.UploadIntoStream(Text, var InStream) Method
> Version: _Available or changed with runtime version 7.0._
Sends a file from the client computer to the corresponding server. The client computer is the computer that is running a browser that accesses the web client.
## Syntax
```al
[Ok := ]  File.UploadIntoStream(FromFilter: Text, var InStream: InStream)
```
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
FromFilter
Type: ../text/text-data-type
The type of file that can be uploaded to the server. A user can try to upload any file type but an error occurs if the file is not the specified type.
InStream
Type: ../instream/instream-data-type
## Return Value
*[Optional] Ok*
Type: ../boolean/boolean-data-type
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
## Remarks
> NOTE
> This method is not supported on devices that run Apple iOS, such as iPad. The dialog box for uploading a file displays, but it is turned off and the user cannot select a file.
The business logic runs on the Dynamics 365 Business Central service and not on the client. Files are created on Dynamics 365 Business Central service and not locally on the client computer.
Use file-upload-method and file-uploadintostream-string-string-string-text-instream-method to send a file from the client to the Dynamics 365 Business Central service.
Use file-download-method and file-downloadfromstream-method to send a file from the Dynamics 365 Business Central service to the client.
We recommend that you use the methods in codeunit 419, File Management, to upload and download files.
## Example
The FromFilter parameter must follow this pattern:
`<ExtensionGroupName>|<extension1>;<extension2>`, for example `'Word files|*.docx;*.doc'`.
```al
codeunit 50100 MyCodeunit
{

    procedure MyProcedure()
    var
        FromFilter: Text;
        NVInStream: InStream;
    begin
        FromFilter := 'All Files (*.*)|*.*';
        UploadIntoStream(FromFilter, NVInStream);
    end;

}
```
## Related information
file-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/file/file-uploadintostream-string-instream-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/file/file-uploadintostream-string-instream-method/
