Re: Upload new file to the uploaded file path

2015-08-08 Thread Robin Lery
It works perfectly! I am using it to upload in s3, and even for s3 it works as it is supposed to. I am really grateful to you. Thank you. On Wed, Aug 5, 2015 at 4:37 PM, 'Tom Evans' via Django users < django-users@googlegroups.com> wrote: > On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery

Re: Upload new file to the uploaded file path

2015-08-05 Thread 'Tom Evans' via Django users
On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery wrote: > I have a model for Video: > > class Video(models.Model): > title = models.CharField(max_length=75) > pubdate = models.DateTimeField(default=timezone.now) > original_video =

Upload new file to the uploaded file path

2015-08-04 Thread Robin Lery
I have a model for Video: class Video(models.Model): title = models.CharField(max_length=75) pubdate = models.DateTimeField(default=timezone.now) original_video = models.FileField(upload_to=get_upload_file_name) mp4_720 = models.FileField(upload_to=get_upload_file_name,blank=True,