Click here to Skip to main content
15,918,211 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi
i want to upload file into local folder (map folder) using jQuery.

how can i make it, kindly guide

Thanks

What I have tried:

hi

i want to upload file into local folder (map folder) using jQuery.

how can i make it, kindly guide

Thanks
Posted

You can't.

jQuery runs on the client. Script running on the client has extremely limited access to the client's file system[^], so you can't use it to "upload" a file to a random folder on the client.

If you want to upload a file to a folder on the server, then you'll need some sort of server-side code to receive the file, verify that it's OK, and then save it to the relevant folder. That's going to be using a server-side language, NOT jQuery.

Either way, you've not told us what you're actually trying to do, nor explained what you have tried and where you are stuck. Nobody can help you fix code that we can't see to do something that you haven't explained!
 
Share this answer
 
Quote:
How to upload file into folder using jquery

Short answer, you don't.
Basically, this is a malware dream feature, and thus, it is forbidden for security reasons.

You can consider JQuery as syntactic sugar aimed to ease JavaScript writing, thus you can only do what JS can do, but easier syntax.

File download to local folder is forbidden without user action and the user choose where the file goes, and its name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900