Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

GT::SQL::File keeps making "dump" files in tmp folder?

Quote Reply
GT::SQL::File keeps making "dump" files in tmp folder?
Hi,

I'm trying to run an update

Code:
my $f = GT::SQL::File->open($new_temp_path);
$DB->table($table)->update( { $field => $fh }, { picture_id => $ID } ) || die $GT::SQL::error;

The above works BUT it makes a random file in the /admin/tmp folder (same size as the image its working with!). Example name: GTTemp90911655

Is there any reason it would be doing that? In the documents for GT::SQL::File it also says you can do it as a basic ref:

Code:
$DB->table($table)->update( { $field => \"$new_temp_path" }, { picture_id => $ID } ) || die $GT::SQL::error;

That seems to fatal out for me (the doc is weird, as its like \``/path/fo/file.txt'' ... notice the ` at the start, and ' at the end)

Can anyone point me in the right direction? Its a PITA cos its all working otherwise - its just these darn Temp files that keep filling up that folder :(

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread GT::SQL::File keeps making "dump" files in tmp folder? Andy 4413 Sep 10, 2012, 10:49 AM
Thread Re: [Andy] GT::SQL::File keeps making "dump" files in tmp folder?
Andy 4289 Sep 14, 2012, 12:24 AM
Thread Re: [Andy] GT::SQL::File keeps making "dump" files in tmp folder?
Andy 4235 Sep 27, 2012, 4:59 AM
Thread Re: [Andy] GT::SQL::File keeps making "dump" files in tmp folder?
brewt 4214 Sep 28, 2012, 11:52 AM
Post Re: [brewt] GT::SQL::File keeps making "dump" files in tmp folder?
Andy 4209 Sep 29, 2012, 1:20 AM