Read/ Write File Without Uploading

Read/ Write File Without Uploading

  

Hi OutSystems Communities,

Was just thinking if it was possible to read in a text file, without having to upload it in the first place through OutSystems. 

As sometimes the file can get really huge, and it would not be optimal to first upload it if we're looking for just a chunk of information.

With Regards,

Dominic

Solution

The Outsystems server can't access a file on the users machine so you need to either upload it to the server somehow or access the file yourself using JavaScript. Note however that the later isn't necessarily a viable option in most cases, some info on using the javascript filesystem API can be found here https://stackoverflow.com/questions/371875/local-file-access-with-javascript?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Solution

John Williams wrote:

The Outsystems server can't access a file on the users machine so you need to either upload it to the server somehow or access the file yourself using JavaScript. Note however that the later isn't necessarily a viable option in most cases, some info on using the javascript filesystem API can be found here https://stackoverflow.com/questions/371875/local-file-access-with-javascript?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa


Thank you for your reply John, its really helpful! 


with Regards,

Dominic