Open jvfiel opened 6 years ago
@jvfiel can you tell us how you are sending an attachment?
@shridarpatil via ERPNext compose mail
@jvfiel can you send a screenshot?
Hello @shridarpatil I made a screen record.
Hope that helps
Cheers, Chris
@ccfiel can you send us traceback it will help us to debug
@shridarpatil this is the traceback
File "/home/frappe/tailerp02/apps/frappe/frappe/app.py", line 62, in application
response = frappe.handler.handle()
File "/home/frappe/tailerp02/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/home/frappe/tailerp02/apps/frappe/frappe/handler.py", line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/tailerp02/apps/frappe/frappe/__init__.py", line 939, in call
return fn(*args, **newargs)
File "/home/frappe/tailerp02/apps/frappe/frappe/core/doctype/communication/email.py", line 86, in make
add_attachments(comm.name, attachments)
File "/home/frappe/tailerp02/apps/frappe/frappe/core/doctype/communication/email.py", line 410, in add_attachments
"Home/Attachments", attach.is_private)
File "/home/frappe/tailerp02/apps/frappe/frappe/utils/file_manager.py", line 102, in save_url
f.insert();
File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 242, in insert
self.run_method("after_insert")
File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 757, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 1026, in composer
return composed(self, method, *args, **kwargs)
File "/home/frappe/tailerp02/apps/frappe/frappe/model/document.py", line 1011, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "/home/frappe/tailerp02/apps/frappe_s3_attachment/frappe_s3_attachment/controller.py", line 188, in file_upload_to_s3
file_path, doc.file_name, doc.is_private, parent_doctype, parent_name
File "/home/frappe/tailerp02/apps/frappe_s3_attachment/frappe_s3_attachment/controller.py", line 90, in upload_files_to_s3_with_key
mime_type = magic.from_file(file_path, mime=True)
File "/home/frappe/tailerp02/env/local/lib/python2.7/site-packages/magic.py", line 136, in from_file
return m.from_file(filename)
File "/home/frappe/tailerp02/env/local/lib/python2.7/site-packages/magic.py", line 86, in from_file
with open(filename):
IOError: [Errno 2] No such file or directory: u'./wela.tailerp.com/api/method/frappe_s3_attachment.controller.generate_file?key=wela/2018/11/09/Salary Slip/CZDPK3IZ_pc2f0e9b' ```
Hello @shridarpatil any idea what cause this? :)
Facing the same issue, any update on the same??