Let's say I have a model somewhat like this -
class Test(models.Model):
some_file=FileField(upload_to='test_directory')
class TestTransfer(models.Model):
transferred_file=FileField(upload_to='transfer_directory')
Now, I have already tried simple object to object copying like this:
transfer_object.transferred_file=test_object.some_file
transfer_object.save()
What the above code does not do is, it does not upload the file to transfer_directory
. Since the file is huge, I don't want it to take up memory space and there are multiple files which I have to transfer.
I am using S3
as media storage if that's needed.
If there is some work around this problem, I would be content