How can I send a file/script from client to server using Jquery? -
I have a file in a client folder that contains some PHP scripts to be sent to the server. The file name is known and We do not have any users in the client side to browse the disk and then upload the file (I have shown some code on the internet how to upload the file from the disk to the server). I have to know how I can give a file name in jquery and can send the file to disk on the server and store it anywhere on the server. I think it is related to some security risks, but it is only for an experiment that is difficult to understand. Note: I do not need the code for which the user select "file" and then press the upload button. Further note: Consider the fully-running web-based application with 5 sub-tasks in the client side (local web server). At runtime, we decide to run 2 of the 5 tasks inside the local web server in the client side and upload it to the server for the rest. So how should this script be separated from the customer? It does not need to be fi...