def supportsFile(self, fileName): #@UnusedVariable ext = getSafeString( getFileExtension(fileName) ).lower() # for image upload, store must support image types or all types if ext and ext in self.imgExtensions and self.getCapabilities().supportsImageFiles(): return True # for video upload, store must support video file types or all types if ext and ext in self.movExtensions and self.getCapabilities().supportsVideoFiles(): return True #default case - must support anytype return self.getCapabilities().supportsAnyFile()
def supportsFile(self, fileName): #@UnusedVariable ext = getSafeString(getFileExtension(fileName)).lower() # for image upload, store must support image types or all types if ext and ext in self.imgExtensions and self.getCapabilities( ).supportsImageFiles(): return True # for video upload, store must support video file types or all types if ext and ext in self.movExtensions and self.getCapabilities( ).supportsVideoFiles(): return True #default case - must support anytype return self.getCapabilities().supportsAnyFile()
def _isImageFile(self): (fileName, absFilePath, filePath, dateTime) = getFileMetaData( self.getFile() ) #@UnusedVariable fileExt = getFileExtension(fileName) return fileExt and fileExt in self.imgExtensions
def _isImageFile(self): (fileName, absFilePath, filePath, dateTime) = getFileMetaData(self.getFile()) #@UnusedVariable fileExt = getFileExtension(fileName) return fileExt and fileExt in self.imgExtensions