How To Upload Files Easily To A Server Using Javascript (for Dummies)
Solution 1:
first, javascript cannot upload a file from the client's computer, otherwise I would be able to send you to a website that would steal all of the files on your computer.
second, all you need to upload a file is an html form, where the user can select a file, then submit the form, thus uploading it to your server. a server side script is then needed to move the uploaded file to wherever you want it.
third, you should realllly be careful about allowing uploads to your server, as this can be a gaping vector for malware to be installed on your server if not done correctly.
fourth, since you are using django as your server side language, you will probably just want to google "uploading files using django". Here is the django documentation on how to do file uploads:
https://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=olddocs
Solution 2:
It seems like you wouldn't need a javascript solution to do that and using basic Django could work. However if you keep interested in manipulating files with Javascript there's an explanation on how to do that at:
How to preprocess a local CSV file before uploading to a server?
Post a Comment for "How To Upload Files Easily To A Server Using Javascript (for Dummies)"