Last post Sep 07, 2019 10:14 PM by Rednuts72
Aug 15, 2019 09:37 AM|Rednuts72|LINK
Aug 15, 2019 10:55 AM|mgebhard|LINK
ActiveX does not exist in modern browsers but modern browser can read files.
Aug 15, 2019 11:54 AM|Rednuts72|LINK
Aug 15, 2019 12:05 PM|PatriceSc|LINK
For safety reason a browser is not supposed to be able to read/write a client side file without any user action (using ActiveX is outdated and anyway it required changing security settings by hand or automatically on enterprise managed computers).
What is the exact scenario ? The usual approach is to have the user selecting a file using the input type="file" tag. You can then access the content of this file (most often but not limited to uploading this content) and you can then also trigger a file
save (with once again the user telling explicitly which file to write).
Or see https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa#current_and_future_offline_storage_work depending
on your exact need ?
Aug 15, 2019 04:26 PM|Rednuts72|LINK
Aug 16, 2019 09:51 AM|samwu|LINK
As PatriceSc said, browsers cannot read/write directly the file from client.
HTML 5 new API can only allow you to read files.
But if you want to write data, you can try to pass textdata to the server, then code the file using some server-side language, and finally write the textdata by downloading it.
Aug 16, 2019 09:58 AM|PatriceSc|LINK
We would need to understand your exact scenario and the purpose of this file. It is really needed only on the client side (and do you even need this to be a file or could localStorage fir your need) ??? The common pattern is likely to upload, process and
Sep 07, 2019 10:14 PM|Rednuts72|LINK