How to get attach File Url on console.log() function

Hello All,

I created a new custom doctype called PDF Extractor in that i create a new custom attach field. Now i want to access this file URL in python script I use frappe call to get the database values but now i wanted to pass the file path to the python script to perform certain operations on it but how i can get this absolute file URL path??..!!

see the following screenshot…!!

Hope anyone can help me to solve this issue.

Anyone ??

The absolute url is usually your server folder structure.

frappe-bench/sites/[your-site-name]/[your-file-url]

You can get file_url using frappe.call and pass this url as an argument to a python function for further processing.

I recommend you install a FTP client and verify the absolute url yourself. Usually frappe-bench is found under home in the server.