December 2018
— It seems that after the underscore there is an id, the thing is that it's not into the name :/
>>>a=tempfile.NamedTemporaryFile(delete=False)>>> a.name'/tmp/tmp9kfrt2lb'>>> import os>>> os.path.getsize(a.name)0
— Maybe your image.name treated as filename prefix?
image.name
— Mmmmmm
— I put a deliberate prefix .jpg like right now
— Its strange because i did just an example in shell and everything was fine but i dont understand what happens in my view
Message permanent page
— What should i do then
— Idk, idk django as well, but from my perspective you can find file that starts with image.name and rename it with os.rename()
os.rename()
— That is fucky
— I mean, that is not a really good solution
— I know ¯\_(ツ)_/¯
— It's just a patch