File path not updated in database after folder move
-
I have a problem with files that were uploaded and registered other than through the media menu, using a custom field in my templates instead.
It does move the file physically to the new folder but the meta in the database contains the original file path both before and after moving. I cannot see any difference in the database entry from similar files uploaded directly.I use My-Meta-Box from bainternet to upload such files. using this line added to functions.php:
require_once( “meta-box-class/my-meta-box-class.php” );
And lines like his to upload the files when editing a page:
$my_meta102->addFile($prefix.’programme_button_url’,array(‘name’=> ‘Programme (pdf): (only made available on day after last performance)‘,’ext’ =>’pdf’,’mime_type’ => ‘application/pdf’));
- The topic ‘File path not updated in database after folder move’ is closed to new replies.