Hi,
I'm trying to run an update
$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:
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!
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!