How To Get Uploaded Attach File In Python

Use Case:-

I created a custom page in that I mention attach field now the attach field will work fine but I wanted to get the uploaded file on the server-side to perform some extractions.

see the above screenshot…,

I wanted to access this simple.pdf file in python script.

Thanks in Advance…,

Is there a reason why you cannot use normal Python directory and file access functions?

The file’s location is easily found after all.

File is a standard doctype. You can list, search, delete, update via frappe.db functions.

Hi @MartinHBramwell Thanks for the reply,
I wanted to perform some data extraction over the current file so i need to access this uploaded current file in the backend…!!

Hello, @TurkerTunali thanks for the suggestion will try on this…!!