adding prefix to video
This commit is contained in:
parent
8aa6b5ac14
commit
784b083c05
@ -10,10 +10,9 @@ class AmazonCopy
|
||||
puts "File #{videolisting.videocode} downloaded."
|
||||
|
||||
s3 = AWS::S3.new
|
||||
obj = s3.buckets['digitalmarketingvideos'].objects["#{videolisting.videocode}.mp4"]
|
||||
obj = s3.buckets['digitalmarketingvideos'].objects["bvideos/#{videolisting.videocode}.mp4"]
|
||||
obj.write(file)
|
||||
puts "File #{videolisting.videocode} uploaded."
|
||||
|
||||
ensure
|
||||
file.close
|
||||
file.unlink
|
||||
|
Loading…
Reference in New Issue
Block a user