Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
JavaScript / HTML Help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="HAneo" data-source="post: 27375414" data-attributes="member: 17432"><p>The way js behaves it does not allow you to access OS resources directly. so getting the full path for a file name is impossible.</p><p>so that is why it created a hook File input. so you have to first go through browser native api's and it will return the file for you.</p><hr /><p>I guess your requirement is to open a file without user intervention.</p><p>so in order to do so you have to create a simple static file server and get the download URL. (Simple 2 min node js app , or asp.net core app or other simple app)</p><p>and have the user upload all the files they need and arrange them. then you can create a config file </p><p></p><p>Report1DocURL: '<a href="https://elakiri.com/docs/report1.csv" target="_blank">https://elakiri.com/docs/report1.csv</a>',</p><p>Report2DocURL: '<a href="https://elakiri.com/docs/report2.csv" target="_blank">https://elakiri.com/docs/report2.csv</a>'</p><p></p><p>then you can access Report1DocURL config variable and get the file from the server and have it processed. </p><p>This is i think the slandered way to do this</p><p>------ <span style="font-size: 10px">Post added on [DATETIME="UT"]1644824045[/DATETIME]</span></p></blockquote><p></p>
[QUOTE="HAneo, post: 27375414, member: 17432"] The way js behaves it does not allow you to access OS resources directly. so getting the full path for a file name is impossible. so that is why it created a hook File input. so you have to first go through browser native api's and it will return the file for you. [HR][/HR] I guess your requirement is to open a file without user intervention. so in order to do so you have to create a simple static file server and get the download URL. (Simple 2 min node js app , or asp.net core app or other simple app) and have the user upload all the files they need and arrange them. then you can create a config file Report1DocURL: '[URL]https://elakiri.com/docs/report1.csv[/URL]', Report2DocURL: '[URL]https://elakiri.com/docs/report2.csv[/URL]' then you can access Report1DocURL config variable and get the file from the server and have it processed. This is i think the slandered way to do this ------ [SIZE=2]Post added on [DATETIME="UT"]1644824045[/DATETIME][/SIZE] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom