Django Shell image upload _io.BufferedReader no attribute size
<p>My problem is that when I try to save image to my model using Django shell I get this error that I can't find solution anywere.</p>

<p>models.py</p>

<pre><code>class AdImage(models.Model):
   ad = models.ForeignKey(Ad)
   full_photo = models.ImageField(upload_to='uploads/', blank=True)
</code></pre>

<p>I import models create AdImage instance add 'ad' and try to </p>

<pre><code>imagead.full_photo.save("NowHiring.jpg",open("C:\\NowHiring.jpg", "rb"))
</code></pre>

<p>but i get an error</p>

<pre><code>Traceback (most recent call last):
  File "&lt;console&gt;", line 1, in &lt;module&gt;
  File "C:\Users\hp\Envs\platform\lib\site-packages\django\db\models\fields\file
s.py", line 106, in save
    self._size = content.size
AttributeError: '_io.BufferedReader' object has no attribute 'size'
</code></pre>

<p>Using: <strong>Python 3.5, Django 1.9</strong></p>

<p>What could I do ?</p>