CGItemp-file and windows

A

Arjen

Hi,

When uploading a file on a windows-server a CGItemp-file is created. This
file is not deleted after the upload.
Is there a way that this file will be deleted after upload ?
In which directorie is this file normally saved (and can I change the
directory) ?
Is it possible to know what the filename of this CGItemp-file is exactly
when a file is uploaded, so I can delete this file myself (within Perl).
Because now for every upload suchg a file is created, so I can not delete
all CGItemp-files after upload (maybe someone is uploading another file on
that moment and then I will delete that CGItemp-file also...)

Hope this explains what my problem is ;-)

Thx,

Arjen
 
A

Arjen

The code I use for this upload is:

open(ATT,">$upload_dir/$filename");
binmode ATT;
$buffer = "";
while (read($file_to_upload, $buffer, 1024)) {
print ATT $buffer;
}
close ATT;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top