Can jQuery / javascript read / receive the contents of the file on the client side, where the file is an image or text, and store it in a variable?
EDIT: whether the file placed in the processed client can
For a security issue, JS cannot read / write files from client machines. Try the Java applet if you are from the Java field, Silverlight from .NET.
This is not possible, for obvious reasons, as soon as you think about possible use cases:
$(function() { //This doesn't work, just an example $.getFile("C:\YourPasswords.txt"); });
, :)
, javascript javascript clientide.
You will need to use an external plugin that allows for such as Java.
You can do this using Universal Access XP with Firefox or ActiveX with IE.
You can check the sample code for this from http://code.google.com/p/memonaut/source/browse/trunk/app/saver.js
Sample code to save; similar material should be readable. Hope this helps.
Source: https://habr.com/ru/post/1736880/More articles:How to get the size of a file uploaded to SQL-Server? - sqlDiscrepancy between the detected versions of the program and the library - linuxChange the auto-increment field to the previous one - sqlHow to resize JTextField? - javaHow to remove HTML tags in PHP? - phpLibPNG + Boost :: GIL: png_infopp_NULL not found - libpngПользовательский интерфейс ускорителя в JavaScript - javascriptHow to determine the texture of the image? - algorithmЗащищенное перечисление не возможно в С# - c#UI Control Library for .NET Micro Framework - c #All Articles