Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Custom App attachments location

Hi guys,

I have a question regarding Writing Custom App. My app have Custom Doctype which take attachment as a field. For this Doctype i also included a bunch of fixtures so that it is ready to be used after the app installed.

However, the attachment right now is always save as a path to /currentsite/public/files/… which I don’t know how to copy from the my app folder over to. Is there a way have attachment link to app/asset/folder instead ?

@nathan_dole not out of the box.

thanks, I got it working by add the copy code into after_install

Would you please share the sample code as I am looking for similar solution