(self, filepath)
return filename
Upload a file to the S3 input file bucket.
Upload a file to the S3 input file bucket.
Upload a file to the S3 input file bucket .
def upload_to_s3(self, filepath):
        """
        Upload a file to the S3 input file bucket.
        """
        filename = os.path.basename(filepath)
        with open(filepath, 'rb') as data:
            self.in_bucket.Object(filename).put(Body=data)
        print("Uploaded raw video {0}".format(filename))
        return filename
def upload_to_s3 ( self , filepath ) : filename = os . path . basename ( filepath ) with open ( filepath , 'rb' ) as data : self . in_bucket . Object ( filename ) . put ( Body = data ) print ( "Uploaded raw video {0}" . format ( filename ) ) return filename