CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
plupload is now working how I want with moving files. stub files are added then their metadata updated as the web receives info.
This commit is contained in:
parent
17d895861d
commit
af4ec7b872
3 changed files with 37 additions and 17 deletions
|
@ -737,7 +737,6 @@ class StoredFile {
|
|||
global $CC_CONFIG;
|
||||
$stor = $CC_CONFIG["storageDir"];
|
||||
$audio_stor = $stor . DIRECTORY_SEPARATOR . $fileName;
|
||||
$r = @rename($audio_file, $audio_stor);
|
||||
|
||||
$md = array();
|
||||
$md['MDATA_KEY_MD5'] = $md5;
|
||||
|
@ -745,6 +744,7 @@ class StoredFile {
|
|||
$md['MDATA_KEY_TITLE'] = $fileName;
|
||||
|
||||
StoredFile::Insert($md);
|
||||
$r = @rename($audio_file, $audio_stor);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue