In my web application about Django I have this code:
docPDF = open('publicaciones/Dictamen-'+nombreRevista+'.pdf','rb')
dictamen.fileEsp.save(name=final_name,content= docPDF)
However, the last line gives me an error:
'_ io.BufferedReader' object has no attribute 'size'
final_name
is a String