0

I work on some gov project and got task to make an opportunity to track if operator(user) uploaded file using scanner or USB drive. I find it's possible if I could get file path before uploading it to server. Is it real in Django?

Mixxxxer
  • 3
  • 1
  • 1
    This is neither possible in Django nor in JavaScript. For security reasons browsers do not allow this, i.e. JavaScript in browser has no access to the File System. https://stackoverflow.com/q/15201071/15239951 – Corralien Sep 18 '21 at 19:30

1 Answers1

0

It is not possible to achieve this in Django as your server does not run on the client machine and thus doesn't have direct access to the file system.

uhexos
  • 383
  • 4
  • 19