Using ir.attachment saved one file in new module but its file extension in .bin file
how i can change it extension into given file name and extension ?
----------------------------------------------------------------------------------------------
Created new module to attach a file by using ir.attachment
when i attaching and downloading are working
but uploaded file is sample.png when i download file name is like okjddnjd.bin.
any solution ? to make same file name(sample.png) when it download..
Your question is not understandable. Please elaborate it and make an example.
@Ermin: He has uploaded an attachment but when he downloads it again it has the file extension .bin. He's wondering why that is happening and how he can fix it because he wants the original filename to be saved ;) @shaneebkan: Is this is a many2many, one2many or simply by uploading an attachment under 'more'? I know I saw some pull request a few days ago to fix this.
it a new module that inherit ir.attachment that many2one