{"title":"File.UploadIntoStream(Text, Text, Text, var Text, var InStream) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/file/file-uploadintostream-string-string-string-text-instream-method/","by":"JOP-AL","license":"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-string-string-text-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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/file/file-uploadintostream-string-string-string-text-instream-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sends a file from the client computer to the corresponding server.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"File.UploadIntoStream(Text, Text, Text, var Text, var InStream) Method","slug":"fileuploadintostreamtext-text-text-var-text-var-instream-method","at":0,"chars":2035},{"level":2,"title":"Syntax","slug":"syntax","at":343,"chars":226},{"level":2,"title":"Parameters","slug":"parameters","at":569,"chars":980},{"level":2,"title":"Return Value","slug":"return-value","at":1549,"chars":354},{"level":2,"title":"Related information","slug":"related-information","at":1903,"chars":132}],"text":"# File.UploadIntoStream(Text, Text, Text, var Text, var InStream) Method\n> Version: _Available or changed with runtime version 1.0._\nSends a file from the client computer to the corresponding server. The client computer is the computer that is running the Windows client or the computer that is running a browser that accesses the web client.\n## Syntax\n```al\n[Ok := ]  File.UploadIntoStream(DialogTitle: Text, FromFolder: Text, FromFilter: Text, var FromFile: Text, var InStream: InStream)\n```\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Parameters\nDialogTitle\nType: ../text/text-data-type\nThe text displayed in the title bar of the Open dialog box. This parameter is not supported by the web client. The title is determined by the end-user's browser.\nFromFolder\nType: ../text/text-data-type\nThe path of the folder that is displayed in the File Open dialog box. This is the default folder, but the user can browse to any available location. This parameter is not supported by the web client. By default, the browser uses the folder that was last accessed.\nFromFilter\nType: ../text/text-data-type\nThe 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.\nFromFile\nType: ../text/text-data-type\nThe default file to upload to the service. The name displays in the dialog box for uploading the file. The user can change the file. This parameter is not supported by the web client.\nInStream\nType: ../instream/instream-data-type\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\ntrue 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.\n> IMPORTANT\n> This method is deprecated from runtime 7.0. Use file-uploadintostream-string-instream-method instead.\n## Related information\nfile-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}