23
Views
3
Comments
How to Save a File to My Local D:\ Drive from an OutSystems web App?
Question
Application Type
Reactive

Hi everyone,

I'm building a web app in OutSystems and need to save a file directly to the user's local D:\ drive (e.g., D:\MyFolder\file.pdf).

I know the FileSystem Forge component works for server-side paths, but is there any way to save directly to the user's local machine without prompting a save dialog?

If not possible, what's the best workaround or user-friendly approach to guide users to save it in a specific location?

Thanks! – Lokesh

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi,

Browsers simply won’t let a web page drop a file straight into your local drive without at least one user-driven “save” action.  It’s a fundamental security restriction: the user has to explicitly choose (or at least confirm) where a file goes. 

The only way to save a file to your local system is through the browser’s save file dialog, which gets triggered using the Download node in your action flow. 

2023-07-21 10-31-07
Neelesh Gupta

Hi,Due to browser security restrictions, web application can not directly write files to a user's local machine (e.g., D:\MyFolder\file.pdf) without user interaction. we can Bundle files into a .zip type then extract file into "D:\MyFolder\file.pdf"

thanks 

2024-12-18 16-06-42
Junaid Syed

Hello Lokesh,

As stated in above responses accessing specific location without user permission is a security issue and this is typically not how web application works. To help you understand the challenges if at all it was possible - Imagine you deploy this application and make it public, there might be end users who don't have any such path on their system, this implementation would fail.

You could simply let the user decide where to save the file using Save Dialog, or provide download functionality to end users which would then download the file to the default Downloads folder on user system.

Hope it helps!

Junaid

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.