Absolute file path detail in file_upload function #143
Replies: 2 comments 1 reply
-
You cann't get the full path when uploading a file, it is a browser limitation for security reasons. When you use
|
Beta Was this translation helpful? Give feedback.
-
If you run your PyWebIO app in a cloud server like ec2, you can't read files from the user machine. That's when you need the If you write a script PyWebIO app, and it only run in your own machine. You can use |
Beta Was this translation helpful? Give feedback.
-
When I'm running an application and do the file upload from some other path then it shows only the file name, not the absolute path (it expects that the file should be present in the same directory of application run). So, If I have to read the csv file from some other directory it will give an error through file_upload.
Can you please me how to solve this (How the get the absolute file path)?
Beta Was this translation helpful? Give feedback.
All reactions