LocalPath returns where attachment is stored in local file system.
()
| 47 | |
| 48 | // LocalPath returns where attachment is stored in local file system. |
| 49 | func (a *Attachment) LocalPath() string { |
| 50 | return AttachmentLocalPath(a.UUID) |
| 51 | } |
| 52 | |
| 53 | // NewAttachment creates a new attachment object. |
| 54 | func NewAttachment(name string, buf []byte, file multipart.File) (_ *Attachment, err error) { |
no test coverage detected