File Gallery Additions
I have a script that automatically adds files to certain file galleries. I have various data collection instruments in a laboratory that write files to an attached computer which in turn places the file in a tikiWiki file gallery using a php script . The script creates an md5 name, places the file in the tTikiWiki file gallery directory the enters the file into a gallery using the insert_file() call.
TikiWiki appears to only be able to return information about a file based on the file ID using the get_file_info() call in FileGalLib. I would be good to recover this file information based on the other fields held that are stored in the file.
The problem comes in being about to check in a script if a file has already been stored in the TikiWiki file gallery. The system updates ever 15 minutes. Because the name of the file is change to a unique MD5 name you can't tell from the file names in the tikiWiki file gallery directory if it has already been stored.
I need a call to return file information from the tiki_files table based not on file ID but say on name, filename or description. This seems like it would be a useful sort of procedure call. In my case it is then be possible enter the file name as the description and then to check if a file of this name has been entered.