I'm working on a news website using django in which I manage data about articles I have id, content,title,category and image which is a FileField
class Article(models.Model):
id=models.AutoField(primary_key=True)
title=models.CharField(max_length=100,null=False,blank=False)
category=models.ForeignKey(Category,null=False,blank=False)
date=models.DateTimeField(auto_now_add=True)
content = models.TextField(null=False, blank=False)
resume=models.CharField(null=False,blank=False,max_length=400)
image = models.FileField(verbose_name=blank=True)
I created an add form which contains data about article
The form contains an input file
<input type="file" name="image">
The form is correctly submitting data and the image is successfully stored. However I noticed that this input works only with local images. It only works if I manually select the image from my computer or I drag it to the input.
If I drag an image from a website to the input it doesn't work.
I would like to know if there's a solution that I can use to drag an image from another website to the file input, because each time I need to submit an image I need to download it.
Any help would be appreciated