Atozed Forums
Is there a way to assign a file to a TIWFileUploader object? - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Is there a way to assign a file to a TIWFileUploader object? (/thread-5759.html)



Is there a way to assign a file to a TIWFileUploader object? - Naturism - 01-20-2026

Hello. Is there a way to assign a file to a TIWFileUploader object? TIA


RE: Is there a way to assign a file to a TIWFileUploader object? - Alexandre Machado - 01-21-2026

I don't think there is.

The file uploader is based on the native (user) file selection in the browser that occurs after a direct user action (e.g. a mouse click).

You can't upload any file to the server. Only the files that the user explicitly tells the browser that can be uploaded. The security implications here are obvious.

What's exactly your requirement?


RE: Is there a way to assign a file to a TIWFileUploader object? - okengineers123 - 03-07-2026

Yes, you can programmatically assign a file to a TIWFileUploader in IntraWeb, though it requires some client-side scripting since it's primarily a browser-driven component.

TIWFileUploader from Atozed IntraWeb handles file selection and uploads via HTML5 file inputs, so direct server-side assignment like setting a FileName property isn't natively supported. Instead, use JavaScript to trigger file selection or populate it dynamically—common in Delphi IntraWeb apps for seamless user flows. This keeps your UI responsive without forcing manual picks every time.