13 days ago
How can I transmit local data to a web application by double-clicking on a file?
- File size can exceed the 4kB size limit for cookies
- The web server uses a domain name and a valid certificate
- I prefer not to use any libraries or frameworks if possible
12 days ago
13 days ago
This seems like a valid approach to open the JSON files from the proprietary file extension in the web application. However, there are some limitations and potential issues that you should consider: - As you mentioned, the size of the data may exceed the cookie size limit, so using cookies to store the data may not be a feasible solution. You could consider using other client-side storage options, such as Local Storage or IndexedDB, or passing the data to the server and loading it again when the page is reloaded. - Using a PHP script as a bridge between the launch application and the web application may introduce some security issues, as it involves passing sensitive data via GET parameters in the URL. You should make sure to properly validate and sanitize the data before using it in the web application. - Using a proprietary file extension and a launch application may require additional setup and maintenance, as you need to ensure that the application is installed on all computers and that the file association is properly configured. - Checking for data in the server-side session may not be the most efficient solution, especially if there are multiple users accessing the web application at the same time. You could consider using a server-side database to store the data instead. Overall, while this approach could work, you may want to consider other options that don't involve the use of a launch application, such as allowing users to directly upload the JSON files to the web application or having the web application access the files directly from the file server. Alternatively, you could consider using a Node.js-based solution to handle the file opening and data transfer.